From d149b14211bf1a4cbe1c9553b5fe015eaf358f85 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 17 Nov 2022 05:04:38 +0000 Subject: [PATCH 1/2] feat: added Location API methods docs: updated comments PiperOrigin-RevId: 489094434 Source-Link: https://github.com/googleapis/googleapis/commit/71673d86fb33c0922826230de38f33ce132394a7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/10177232d420006610ae9fb740d9f13efe975cb9 Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiMTAxNzcyMzJkNDIwMDA2NjEwYWU5ZmI3NDBkOWYxM2VmZTk3NWNiOSJ9 --- .../v1/DataTransferServiceGrpc.java | 2176 ----------------- .../v1/CheckValidCredsRequestOrBuilder.java | 58 - .../v1/CheckValidCredsResponseOrBuilder.java | 38 - .../CreateTransferConfigRequestOrBuilder.java | 220 -- .../datatransfer/v1/DataTransferProto.java | 674 ----- .../DeleteTransferConfigRequestOrBuilder.java | 58 - .../v1/EmailPreferencesOrBuilder.java | 38 - .../v1/GetDataSourceRequestOrBuilder.java | 58 - .../v1/GetTransferConfigRequestOrBuilder.java | 58 - .../datatransfer/v1/TransferProto.java | 246 -- .../UpdateTransferConfigRequestOrBuilder.java | 225 -- .../v1/DataTransferServiceClient.java | 24 +- .../v1/DataTransferServiceSettings.java | 1 + .../datatransfer/v1/gapic_metadata.json | 0 .../datatransfer/v1/package-info.java | 0 .../v1/stub/DataTransferServiceStub.java | 0 .../stub/DataTransferServiceStubSettings.java | 0 ...rpcDataTransferServiceCallableFactory.java | 0 .../v1/stub/GrpcDataTransferServiceStub.java | 1 + ...sonDataTransferServiceCallableFactory.java | 0 .../stub/HttpJsonDataTransferServiceStub.java | 0 ...DataTransferServiceClientHttpJsonTest.java | 0 .../v1/DataTransferServiceClientTest.java | 0 .../v1/MockDataTransferService.java | 0 .../v1/MockDataTransferServiceImpl.java | 0 .../v1/DataTransferServiceGrpc.java | 1583 ++++++++++++ .../v1/CheckValidCredsRequest.java | 378 ++- .../v1/CheckValidCredsRequestOrBuilder.java | 33 + .../v1/CheckValidCredsResponse.java | 320 ++- .../v1/CheckValidCredsResponseOrBuilder.java | 19 + .../v1/CreateTransferConfigRequest.java | 1165 ++++----- .../CreateTransferConfigRequestOrBuilder.java | 184 ++ .../bigquery/datatransfer/v1/DataSource.java | 1964 ++++++--------- .../datatransfer/v1/DataSourceName.java | 313 +++ .../datatransfer/v1/DataSourceOrBuilder.java | 213 +- .../datatransfer/v1/DataSourceParameter.java | 1554 +++++------- .../v1/DataSourceParameterOrBuilder.java | 148 +- .../datatransfer/v1/DataTransferProto.java | 597 +++++ .../v1/DeleteTransferConfigRequest.java | 390 ++- .../DeleteTransferConfigRequestOrBuilder.java | 33 + .../v1/DeleteTransferRunRequest.java | 390 ++- .../v1/DeleteTransferRunRequestOrBuilder.java | 35 +- .../datatransfer/v1/EmailPreferences.java | 292 +-- .../v1/EmailPreferencesOrBuilder.java | 19 + .../v1/EnrollDataSourcesRequest.java | 490 ++-- .../v1/EnrollDataSourcesRequestOrBuilder.java | 51 +- .../datatransfer/v1/GetDataSourceRequest.java | 375 ++- .../v1/GetDataSourceRequestOrBuilder.java | 33 + .../v1/GetTransferConfigRequest.java | 390 ++- .../v1/GetTransferConfigRequestOrBuilder.java | 33 + .../v1/GetTransferRunRequest.java | 378 ++- .../v1/GetTransferRunRequestOrBuilder.java | 35 +- .../v1/ListDataSourcesRequest.java | 506 ++-- .../v1/ListDataSourcesRequestOrBuilder.java | 51 +- .../v1/ListDataSourcesResponse.java | 502 ++-- .../v1/ListDataSourcesResponseOrBuilder.java | 45 +- .../v1/ListTransferConfigsRequest.java | 621 ++--- .../ListTransferConfigsRequestOrBuilder.java | 69 +- .../v1/ListTransferConfigsResponse.java | 631 ++--- .../ListTransferConfigsResponseOrBuilder.java | 62 +- .../v1/ListTransferLogsRequest.java | 728 ++---- .../v1/ListTransferLogsRequestOrBuilder.java | 91 +- .../v1/ListTransferLogsResponse.java | 639 ++--- .../v1/ListTransferLogsResponseOrBuilder.java | 61 +- .../v1/ListTransferRunsRequest.java | 806 +++--- .../v1/ListTransferRunsRequestOrBuilder.java | 79 +- .../v1/ListTransferRunsResponse.java | 604 ++--- .../v1/ListTransferRunsResponseOrBuilder.java | 62 +- .../datatransfer/v1/LocationName.java | 0 .../bigquery/datatransfer/v1/ProjectName.java | 0 .../bigquery/datatransfer/v1/RunName.java | 371 +++ .../datatransfer/v1/ScheduleOptions.java | 440 ++-- .../v1/ScheduleOptionsOrBuilder.java | 37 +- .../v1/ScheduleTransferRunsRequest.java | 601 ++--- .../ScheduleTransferRunsRequestOrBuilder.java | 60 +- .../v1/ScheduleTransferRunsResponse.java | 443 ++-- ...ScheduleTransferRunsResponseOrBuilder.java | 36 +- .../v1/StartManualTransferRunsRequest.java | 1259 ++++------ ...artManualTransferRunsRequestOrBuilder.java | 64 +- .../v1/StartManualTransferRunsResponse.java | 460 ++-- ...rtManualTransferRunsResponseOrBuilder.java | 36 +- .../datatransfer/v1/TransferConfig.java | 1754 +++++-------- .../datatransfer/v1/TransferConfigName.java | 314 +++ .../v1/TransferConfigOrBuilder.java | 202 +- .../datatransfer/v1/TransferMessage.java | 590 ++--- .../v1/TransferMessageOrBuilder.java | 47 +- .../datatransfer/v1/TransferProto.java | 193 ++ .../bigquery/datatransfer/v1/TransferRun.java | 1656 +++++-------- .../datatransfer/v1/TransferRunOrBuilder.java | 187 +- .../datatransfer/v1/TransferState.java | 107 +- .../datatransfer/v1/TransferType.java | 87 +- .../v1/UpdateTransferConfigRequest.java | 1184 ++++----- .../UpdateTransferConfigRequestOrBuilder.java | 185 ++ .../bigquery/datatransfer/v1/UserInfo.java | 330 ++- .../datatransfer/v1/UserInfoOrBuilder.java | 30 +- .../datatransfer/v1/datatransfer.proto | 144 +- .../bigquery/datatransfer/v1/transfer.proto | 6 +- 97 files changed, 12816 insertions(+), 18854 deletions(-) delete mode 100644 java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java delete mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java (99%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java (99%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java (99%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java (63%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java (62%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java (50%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java (71%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java (76%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java (74%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java (61%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java (61%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java (50%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java (66%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java (65%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java (61%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java (63%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java (61%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java (63%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java (50%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java (66%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java (60%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java (72%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java (73%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java (67%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java (67%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java (62%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java (55%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java (65%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java (62%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java (62%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java (55%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java (69%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java (73%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java (63%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java (54%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java (100%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java (76%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java (82%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java (67%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java (68%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java (68%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java (65%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java (66%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java (64%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java (66%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java (65%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java (73%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java (80%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java (68%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java (74%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java (82%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java (69%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java (66%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java (50%) create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java (66%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java (52%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto (84%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto (97%) diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java deleted file mode 100644 index 03934f650062..000000000000 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java +++ /dev/null @@ -1,2176 +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.datatransfer.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * This API allows users to manage their data transfers into BigQuery.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DataTransferServiceGrpc { - - private DataTransferServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.bigquery.datatransfer.v1.DataTransferService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSource> - getGetDataSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataSource", - requestType = com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.DataSource.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSource> - getGetDataSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSource> - getGetDataSourceMethod; - if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { - DataTransferServiceGrpc.getGetDataSourceMethod = - getGetDataSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.DataSource - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("GetDataSource")) - .build(); - } - } - } - return getGetDataSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> - getListDataSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataSources", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> - getListDataSourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> - getListDataSourcesMethod; - if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { - DataTransferServiceGrpc.getListDataSourcesMethod = - getListDataSourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("ListDataSources")) - .build(); - } - } - } - return getListDataSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getCreateTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getCreateTransferConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getCreateTransferConfigMethod; - if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) - == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) - == null) { - DataTransferServiceGrpc.getCreateTransferConfigMethod = - getCreateTransferConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("CreateTransferConfig")) - .build(); - } - } - } - return getCreateTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getUpdateTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getUpdateTransferConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getUpdateTransferConfigMethod; - if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) - == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) - == null) { - DataTransferServiceGrpc.getUpdateTransferConfigMethod = - getUpdateTransferConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("UpdateTransferConfig")) - .build(); - } - } - } - return getUpdateTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, - com.google.protobuf.Empty> - getDeleteTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, - com.google.protobuf.Empty> - getDeleteTransferConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, - com.google.protobuf.Empty> - getDeleteTransferConfigMethod; - if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) - == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) - == null) { - DataTransferServiceGrpc.getDeleteTransferConfigMethod = - getDeleteTransferConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("DeleteTransferConfig")) - .build(); - } - } - } - return getDeleteTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getGetTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getGetTransferConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getGetTransferConfigMethod; - if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) - == null) { - DataTransferServiceGrpc.getGetTransferConfigMethod = - getGetTransferConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("GetTransferConfig")) - .build(); - } - } - } - return getGetTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> - getListTransferConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTransferConfigs", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> - getListTransferConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> - getListTransferConfigsMethod; - if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) - == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) - == null) { - DataTransferServiceGrpc.getListTransferConfigsMethod = - getListTransferConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListTransferConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("ListTransferConfigs")) - .build(); - } - } - } - return getListTransferConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> - getScheduleTransferRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ScheduleTransferRuns", - requestType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> - getScheduleTransferRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> - getScheduleTransferRunsMethod; - if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) - == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) - == null) { - DataTransferServiceGrpc.getScheduleTransferRunsMethod = - getScheduleTransferRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ScheduleTransferRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("ScheduleTransferRuns")) - .build(); - } - } - } - return getScheduleTransferRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> - getStartManualTransferRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartManualTransferRuns", - requestType = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, - responseType = - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> - getStartManualTransferRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> - getStartManualTransferRunsMethod; - if ((getStartManualTransferRunsMethod = - DataTransferServiceGrpc.getStartManualTransferRunsMethod) - == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getStartManualTransferRunsMethod = - DataTransferServiceGrpc.getStartManualTransferRunsMethod) - == null) { - DataTransferServiceGrpc.getStartManualTransferRunsMethod = - getStartManualTransferRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "StartManualTransferRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1 - .StartManualTransferRunsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1 - .StartManualTransferRunsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier( - "StartManualTransferRuns")) - .build(); - } - } - } - return getStartManualTransferRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getGetTransferRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransferRun", - requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getGetTransferRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getGetTransferRunMethod; - if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { - DataTransferServiceGrpc.getGetTransferRunMethod = - getGetTransferRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferRun - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("GetTransferRun")) - .build(); - } - } - } - return getGetTransferRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, - com.google.protobuf.Empty> - getDeleteTransferRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTransferRun", - requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, - com.google.protobuf.Empty> - getDeleteTransferRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, - com.google.protobuf.Empty> - getDeleteTransferRunMethod; - if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) - == null) { - DataTransferServiceGrpc.getDeleteTransferRunMethod = - getDeleteTransferRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTransferRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("DeleteTransferRun")) - .build(); - } - } - } - return getDeleteTransferRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> - getListTransferRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTransferRuns", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> - getListTransferRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> - getListTransferRunsMethod; - if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) - == null) { - DataTransferServiceGrpc.getListTransferRunsMethod = - getListTransferRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("ListTransferRuns")) - .build(); - } - } - } - return getListTransferRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> - getListTransferLogsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTransferLogs", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> - getListTransferLogsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> - getListTransferLogsMethod; - if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) - == null) { - DataTransferServiceGrpc.getListTransferLogsMethod = - getListTransferLogsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferLogs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("ListTransferLogs")) - .build(); - } - } - } - return getListTransferLogsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> - getCheckValidCredsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CheckValidCreds", - requestType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> - getCheckValidCredsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> - getCheckValidCredsMethod; - if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { - DataTransferServiceGrpc.getCheckValidCredsMethod = - getCheckValidCredsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckValidCreds")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("CheckValidCreds")) - .build(); - } - } - } - return getCheckValidCredsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, - com.google.protobuf.Empty> - getEnrollDataSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnrollDataSources", - requestType = com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, - com.google.protobuf.Empty> - getEnrollDataSourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, - com.google.protobuf.Empty> - getEnrollDataSourcesMethod; - if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) - == null) { - DataTransferServiceGrpc.getEnrollDataSourcesMethod = - getEnrollDataSourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnrollDataSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataTransferServiceMethodDescriptorSupplier("EnrollDataSources")) - .build(); - } - } - } - return getEnrollDataSourcesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DataTransferServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataTransferServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceStub(channel, callOptions); - } - }; - return DataTransferServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataTransferServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataTransferServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceBlockingStub(channel, callOptions); - } - }; - return DataTransferServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataTransferServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataTransferServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceFutureStub(channel, callOptions); - } - }; - return DataTransferServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public abstract static class DataTransferServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public void getDataSource( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public void listDataSources( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDataSourcesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public void createTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTransferConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public void updateTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTransferConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public void deleteTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTransferConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ - public void getTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTransferConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public void listTransferConfigs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTransferConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public void scheduleTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getScheduleTransferRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public void startManualTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartManualTransferRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public void getTransferRun( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTransferRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ - public void deleteTransferRun( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTransferRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public void listTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTransferRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public void listTransferLogs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTransferLogsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public void checkValidCreds( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCheckValidCredsMethod(), responseObserver); - } - - /** - * - * - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the BigQuery UI
-     * 'https://bigquery.cloud.google.com' (and the documents can be found at
-     * https://cloud.google.com/bigquery/bigquery-web-ui and
-     * https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public void enrollDataSources( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getEnrollDataSourcesMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetDataSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSource>( - this, METHODID_GET_DATA_SOURCE))) - .addMethod( - getListDataSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse>( - this, METHODID_LIST_DATA_SOURCES))) - .addMethod( - getCreateTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( - this, METHODID_CREATE_TRANSFER_CONFIG))) - .addMethod( - getUpdateTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( - this, METHODID_UPDATE_TRANSFER_CONFIG))) - .addMethod( - getDeleteTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_TRANSFER_CONFIG))) - .addMethod( - getGetTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( - this, METHODID_GET_TRANSFER_CONFIG))) - .addMethod( - getListTransferConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse>( - this, METHODID_LIST_TRANSFER_CONFIGS))) - .addMethod( - getScheduleTransferRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse>( - this, METHODID_SCHEDULE_TRANSFER_RUNS))) - .addMethod( - getStartManualTransferRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse>( - this, METHODID_START_MANUAL_TRANSFER_RUNS))) - .addMethod( - getGetTransferRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun>( - this, METHODID_GET_TRANSFER_RUN))) - .addMethod( - getDeleteTransferRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_TRANSFER_RUN))) - .addMethod( - getListTransferRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse>( - this, METHODID_LIST_TRANSFER_RUNS))) - .addMethod( - getListTransferLogsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse>( - this, METHODID_LIST_TRANSFER_LOGS))) - .addMethod( - getCheckValidCredsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse>( - this, METHODID_CHECK_VALID_CREDS))) - .addMethod( - getEnrollDataSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, - com.google.protobuf.Empty>(this, METHODID_ENROLL_DATA_SOURCES))) - .build(); - } - } - - /** - * - * - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public static final class DataTransferServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DataTransferServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataTransferServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public void getDataSource( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public void listDataSources( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public void createTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public void updateTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public void deleteTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ - public void getTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public void listTransferConfigs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public void scheduleTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public void startManualTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public void getTransferRun( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ - public void deleteTransferRun( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public void listTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public void listTransferLogs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public void checkValidCreds( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the BigQuery UI
-     * 'https://bigquery.cloud.google.com' (and the documents can be found at
-     * https://cloud.google.com/bigquery/bigquery-web-ui and
-     * https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public void enrollDataSources( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public static final class DataTransferServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataTransferServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataTransferServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse listDataSources( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataSourcesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig createTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTransferConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig updateTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTransferConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public com.google.protobuf.Empty deleteTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTransferConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTransferConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - listTransferConfigs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTransferConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - scheduleTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getScheduleTransferRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - startManualTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartManualTransferRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRun( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTransferRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ - public com.google.protobuf.Empty deleteTransferRun( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTransferRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse listTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTransferRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse listTransferLogs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTransferLogsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse checkValidCreds( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCheckValidCredsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the BigQuery UI
-     * 'https://bigquery.cloud.google.com' (and the documents can be found at
-     * https://cloud.google.com/bigquery/bigquery-web-ui and
-     * https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public com.google.protobuf.Empty enrollDataSources( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnrollDataSourcesMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public static final class DataTransferServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataTransferServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataTransferServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.DataSource> - getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> - listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - createTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - updateTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig> - getTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> - listTransferConfigs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> - scheduleTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> - startManualTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteTransferRun( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> - listTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> - listTransferLogs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> - checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the BigQuery UI
-     * 'https://bigquery.cloud.google.com' (and the documents can be found at
-     * https://cloud.google.com/bigquery/bigquery-web-ui and
-     * https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - enrollDataSources( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_DATA_SOURCE = 0; - private static final int METHODID_LIST_DATA_SOURCES = 1; - private static final int METHODID_CREATE_TRANSFER_CONFIG = 2; - private static final int METHODID_UPDATE_TRANSFER_CONFIG = 3; - private static final int METHODID_DELETE_TRANSFER_CONFIG = 4; - private static final int METHODID_GET_TRANSFER_CONFIG = 5; - private static final int METHODID_LIST_TRANSFER_CONFIGS = 6; - private static final int METHODID_SCHEDULE_TRANSFER_RUNS = 7; - private static final int METHODID_START_MANUAL_TRANSFER_RUNS = 8; - private static final int METHODID_GET_TRANSFER_RUN = 9; - private static final int METHODID_DELETE_TRANSFER_RUN = 10; - private static final int METHODID_LIST_TRANSFER_RUNS = 11; - private static final int METHODID_LIST_TRANSFER_LOGS = 12; - private static final int METHODID_CHECK_VALID_CREDS = 13; - private static final int METHODID_ENROLL_DATA_SOURCES = 14; - - 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 DataTransferServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DataTransferServiceImplBase 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_GET_DATA_SOURCE: - serviceImpl.getDataSource( - (com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_DATA_SOURCES: - serviceImpl.listDataSources( - (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse>) - responseObserver); - break; - case METHODID_CREATE_TRANSFER_CONFIG: - serviceImpl.createTransferConfig( - (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>) - responseObserver); - break; - case METHODID_UPDATE_TRANSFER_CONFIG: - serviceImpl.updateTransferConfig( - (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>) - responseObserver); - break; - case METHODID_DELETE_TRANSFER_CONFIG: - serviceImpl.deleteTransferConfig( - (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TRANSFER_CONFIG: - serviceImpl.getTransferConfig( - (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>) - responseObserver); - break; - case METHODID_LIST_TRANSFER_CONFIGS: - serviceImpl.listTransferConfigs( - (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse>) - responseObserver); - break; - case METHODID_SCHEDULE_TRANSFER_RUNS: - serviceImpl.scheduleTransferRuns( - (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse>) - responseObserver); - break; - case METHODID_START_MANUAL_TRANSFER_RUNS: - serviceImpl.startManualTransferRuns( - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse>) - responseObserver); - break; - case METHODID_GET_TRANSFER_RUN: - serviceImpl.getTransferRun( - (com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TRANSFER_RUN: - serviceImpl.deleteTransferRun( - (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TRANSFER_RUNS: - serviceImpl.listTransferRuns( - (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse>) - responseObserver); - break; - case METHODID_LIST_TRANSFER_LOGS: - serviceImpl.listTransferLogs( - (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse>) - responseObserver); - break; - case METHODID_CHECK_VALID_CREDS: - serviceImpl.checkValidCreds( - (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse>) - responseObserver); - break; - case METHODID_ENROLL_DATA_SOURCES: - serviceImpl.enrollDataSources( - (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) 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 DataTransferServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataTransferServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataTransferService"); - } - } - - private static final class DataTransferServiceFileDescriptorSupplier - extends DataTransferServiceBaseDescriptorSupplier { - DataTransferServiceFileDescriptorSupplier() {} - } - - private static final class DataTransferServiceMethodDescriptorSupplier - extends DataTransferServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DataTransferServiceMethodDescriptorSupplier(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 (DataTransferServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataTransferServiceFileDescriptorSupplier()) - .addMethod(getGetDataSourceMethod()) - .addMethod(getListDataSourcesMethod()) - .addMethod(getCreateTransferConfigMethod()) - .addMethod(getUpdateTransferConfigMethod()) - .addMethod(getDeleteTransferConfigMethod()) - .addMethod(getGetTransferConfigMethod()) - .addMethod(getListTransferConfigsMethod()) - .addMethod(getScheduleTransferRunsMethod()) - .addMethod(getStartManualTransferRunsMethod()) - .addMethod(getGetTransferRunMethod()) - .addMethod(getDeleteTransferRunMethod()) - .addMethod(getListTransferRunsMethod()) - .addMethod(getListTransferLogsMethod()) - .addMethod(getCheckValidCredsMethod()) - .addMethod(getEnrollDataSourcesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java deleted file mode 100644 index b3bd72ca4e83..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface CheckValidCredsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The data source in the form:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The data source in the form:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java deleted file mode 100644 index 4114eed91e95..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java +++ /dev/null @@ -1,38 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface CheckValidCredsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If set to `true`, the credentials exist and are valid.
-   * 
- * - * bool has_valid_creds = 1; - * - * @return The hasValidCreds. - */ - boolean getHasValidCreds(); -} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java deleted file mode 100644 index 62fdffd2a4ce..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java +++ /dev/null @@ -1,220 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface CreateTransferConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The BigQuery project id where the transfer configuration should be created.
-   * Must be in the format projects/{project_id}/locations/{location_id} or
-   * projects/{project_id}. If specified location and location of the
-   * destination bigquery dataset do not match - the request will fail.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The BigQuery project id where the transfer configuration should be created.
-   * Must be in the format projects/{project_id}/locations/{location_id} or
-   * projects/{project_id}. If specified location and location of the
-   * destination bigquery dataset do not match - the request will fail.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Data transfer configuration to create.
-   * 
- * - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the transferConfig field is set. - */ - boolean hasTransferConfig(); - /** - * - * - *
-   * Required. Data transfer configuration to create.
-   * 
- * - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The transferConfig. - */ - com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(); - /** - * - * - *
-   * Required. Data transfer configuration to create.
-   * 
- * - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder(); - - /** - * - * - *
-   * Optional OAuth2 authorization code to use with this transfer configuration.
-   * This is required if new credentials are needed, as indicated by
-   * `CheckValidCreds`.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
-   * 
- * - * string authorization_code = 3; - * - * @return The authorizationCode. - */ - java.lang.String getAuthorizationCode(); - /** - * - * - *
-   * Optional OAuth2 authorization code to use with this transfer configuration.
-   * This is required if new credentials are needed, as indicated by
-   * `CheckValidCreds`.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
-   * 
- * - * string authorization_code = 3; - * - * @return The bytes for authorizationCode. - */ - com.google.protobuf.ByteString getAuthorizationCodeBytes(); - - /** - * - * - *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
-   * 
- * - * string version_info = 5; - * - * @return The versionInfo. - */ - java.lang.String getVersionInfo(); - /** - * - * - *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
-   * 
- * - * string version_info = 5; - * - * @return The bytes for versionInfo. - */ - com.google.protobuf.ByteString getVersionInfoBytes(); - - /** - * - * - *
-   * Optional service account name. If this field is set, transfer config will
-   * be created with this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
-   * account.
-   * 
- * - * string service_account_name = 6; - * - * @return The serviceAccountName. - */ - java.lang.String getServiceAccountName(); - /** - * - * - *
-   * Optional service account name. If this field is set, transfer config will
-   * be created with this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
-   * account.
-   * 
- * - * string service_account_name = 6; - * - * @return The bytes for serviceAccountName. - */ - com.google.protobuf.ByteString getServiceAccountNameBytes(); -} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java deleted file mode 100644 index 502ade211e0c..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java +++ /dev/null @@ -1,674 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public final class DataTransferProto { - private DataTransferProto() {} - - 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_datatransfer_v1_DataSourceParameter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/bigquery/datatransfer/v1/" - + "datatransfer.proto\022%google.cloud.bigquer" - + "y.datatransfer.v1\032\034google/api/annotation" - + "s.proto\032\027google/api/client.proto\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\0324google/cloud/bigquery/data" - + "transfer/v1/transfer.proto\032\036google/proto" - + "buf/duration.proto\032\033google/protobuf/empt" - + "y.proto\032 google/protobuf/field_mask.prot" - + "o\032\037google/protobuf/timestamp.proto\032\036goog" - + "le/protobuf/wrappers.proto\"\205\005\n\023DataSourc" - + "eParameter\022\020\n\010param_id\030\001 \001(\t\022\024\n\014display_" - + "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022M\n\004type\030" - + "\004 \001(\0162?.google.cloud.bigquery.datatransf" - + "er.v1.DataSourceParameter.Type\022\020\n\010requir" - + "ed\030\005 \001(\010\022\020\n\010repeated\030\006 \001(\010\022\030\n\020validation" - + "_regex\030\007 \001(\t\022\026\n\016allowed_values\030\010 \003(\t\022/\n\t" - + "min_value\030\t \001(\0132\034.google.protobuf.Double" - + "Value\022/\n\tmax_value\030\n \001(\0132\034.google.protob" - + "uf.DoubleValue\022J\n\006fields\030\013 \003(\0132:.google." - + "cloud.bigquery.datatransfer.v1.DataSourc" - + "eParameter\022\036\n\026validation_description\030\014 \001" - + "(\t\022\033\n\023validation_help_url\030\r \001(\t\022\021\n\timmut" - + "able\030\016 \001(\010\022\017\n\007recurse\030\017 \001(\010\022\022\n\ndeprecate" - + "d\030\024 \001(\010\"i\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006STRING\020\001\022\013\n\007INTEGER\020\002\022\n\n\006DOUBLE\020\003\022\013\n\007BO" - + "OLEAN\020\004\022\n\n\006RECORD\020\005\022\r\n\tPLUS_PAGE\020\006\"\234\t\n\nD" - + "ataSource\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016data_sou" - + "rce_id\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\023\n\013de" - + "scription\030\004 \001(\t\022\021\n\tclient_id\030\005 \001(\t\022\016\n\006sc" - + "opes\030\006 \003(\t\022N\n\rtransfer_type\030\007 \001(\01623.goog" - + "le.cloud.bigquery.datatransfer.v1.Transf" - + "erTypeB\002\030\001\022\'\n\033supports_multiple_transfer" - + "s\030\010 \001(\010B\002\030\001\022\037\n\027update_deadline_seconds\030\t" - + " \001(\005\022\030\n\020default_schedule\030\n \001(\t\022 \n\030suppor" - + "ts_custom_schedule\030\013 \001(\010\022N\n\nparameters\030\014" - + " \003(\0132:.google.cloud.bigquery.datatransfe" - + "r.v1.DataSourceParameter\022\020\n\010help_url\030\r \001" - + "(\t\022_\n\022authorization_type\030\016 \001(\0162C.google." - + "cloud.bigquery.datatransfer.v1.DataSourc" - + "e.AuthorizationType\022\\\n\021data_refresh_type" - + "\030\017 \001(\0162A.google.cloud.bigquery.datatrans" - + "fer.v1.DataSource.DataRefreshType\022(\n def" - + "ault_data_refresh_window_days\030\020 \001(\005\022\034\n\024m" - + "anual_runs_disabled\030\021 \001(\010\022<\n\031minimum_sch" - + "edule_interval\030\022 \001(\0132\031.google.protobuf.D" - + "uration\"\212\001\n\021AuthorizationType\022\"\n\036AUTHORI" - + "ZATION_TYPE_UNSPECIFIED\020\000\022\026\n\022AUTHORIZATI" - + "ON_CODE\020\001\022\"\n\036GOOGLE_PLUS_AUTHORIZATION_C" - + "ODE\020\002\022\025\n\021FIRST_PARTY_OAUTH\020\003\"c\n\017DataRefr" - + "eshType\022!\n\035DATA_REFRESH_TYPE_UNSPECIFIED" - + "\020\000\022\022\n\016SLIDING_WINDOW\020\001\022\031\n\025CUSTOM_SLIDING" - + "_WINDOW\020\002:\245\001\352A\241\001\n.bigquerydatatransfer.g" - + "oogleapis.com/DataSource\022,projects/{proj" - + "ect}/dataSources/{data_source}\022Aprojects" - + "/{project}/locations/{location}/dataSour" - + "ces/{data_source}\"\\\n\024GetDataSourceReques" - + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.bigquerydatatra" - + "nsfer.googleapis.com/DataSource\"\207\001\n\026List" - + "DataSourcesRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" - + "A0\022.bigquerydatatransfer.googleapis.com/" - + "DataSource\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_s" - + "ize\030\004 \001(\005\"\200\001\n\027ListDataSourcesResponse\022G\n" - + "\014data_sources\030\001 \003(\01321.google.cloud.bigqu" - + "ery.datatransfer.v1.DataSource\022\034\n\017next_p" - + "age_token\030\002 \001(\tB\003\340A\003\"\216\002\n\033CreateTransferC" - + "onfigRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bi" - + "gquerydatatransfer.googleapis.com/Transf" - + "erConfig\022S\n\017transfer_config\030\002 \001(\01325.goog" - + "le.cloud.bigquery.datatransfer.v1.Transf" - + "erConfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(" - + "\t\022\024\n\014version_info\030\005 \001(\t\022\034\n\024service_accou" - + "nt_name\030\006 \001(\t\"\370\001\n\033UpdateTransferConfigRe" - + "quest\022S\n\017transfer_config\030\001 \001(\01325.google." - + "cloud.bigquery.datatransfer.v1.TransferC" - + "onfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(\t\0224" - + "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\002\022\024\n\014version_info\030\005 \001(\t\022\034\n\024se" - + "rvice_account_name\030\006 \001(\t\"d\n\030GetTransferC" - + "onfigRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2bigq" - + "uerydatatransfer.googleapis.com/Transfer" - + "Config\"g\n\033DeleteTransferConfigRequest\022H\n" - + "\004name\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatransfe" - + "r.googleapis.com/TransferConfig\"V\n\025GetTr" - + "ansferRunRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'" - + "bigquerydatatransfer.googleapis.com/Run\"" - + "Y\n\030DeleteTransferRunRequest\022=\n\004name\030\001 \001(" - + "\tB/\340A\002\372A)\n\'bigquerydatatransfer.googleap" - + "is.com/Run\"\250\001\n\032ListTransferConfigsReques" - + "t\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bigquerydatat" - + "ransfer.googleapis.com/TransferConfig\022\027\n" - + "\017data_source_ids\030\002 \003(\t\022\022\n\npage_token\030\003 \001" - + "(\t\022\021\n\tpage_size\030\004 \001(\005\"\221\001\n\033ListTransferCo" - + "nfigsResponse\022T\n\020transfer_configs\030\001 \003(\0132" - + "5.google.cloud.bigquery.datatransfer.v1." - + "TransferConfigB\003\340A\003\022\034\n\017next_page_token\030\002" - + " \001(\tB\003\340A\003\"\336\002\n\027ListTransferRunsRequest\022?\n" - + "\006parent\030\001 \001(\tB/\340A\002\372A)\022\'bigquerydatatrans" - + "fer.googleapis.com/Run\022D\n\006states\030\002 \003(\01624" - + ".google.cloud.bigquery.datatransfer.v1.T" - + "ransferState\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage" - + "_size\030\004 \001(\005\022^\n\013run_attempt\030\005 \001(\0162I.googl" - + "e.cloud.bigquery.datatransfer.v1.ListTra" - + "nsferRunsRequest.RunAttempt\"5\n\nRunAttemp" - + "t\022\033\n\027RUN_ATTEMPT_UNSPECIFIED\020\000\022\n\n\006LATEST" - + "\020\001\"\210\001\n\030ListTransferRunsResponse\022N\n\rtrans" - + "fer_runs\030\001 \003(\01322.google.cloud.bigquery.d" - + "atatransfer.v1.TransferRunB\003\340A\003\022\034\n\017next_" - + "page_token\030\002 \001(\tB\003\340A\003\"\340\001\n\027ListTransferLo" - + "gsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'bigqu" - + "erydatatransfer.googleapis.com/Run\022\022\n\npa" - + "ge_token\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\022]\n\rmes" - + "sage_types\030\006 \003(\0162F.google.cloud.bigquery" - + ".datatransfer.v1.TransferMessage.Message" - + "Severity\"\220\001\n\030ListTransferLogsResponse\022V\n" - + "\021transfer_messages\030\001 \003(\01326.google.cloud." - + "bigquery.datatransfer.v1.TransferMessage" - + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"^\n\026C" - + "heckValidCredsRequest\022D\n\004name\030\001 \001(\tB6\340A\002" - + "\372A0\n.bigquerydatatransfer.googleapis.com" - + "/DataSource\"2\n\027CheckValidCredsResponse\022\027" - + "\n\017has_valid_creds\030\001 \001(\010\"\321\001\n\033ScheduleTran" - + "sferRunsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\n" - + "2bigquerydatatransfer.googleapis.com/Tra" - + "nsferConfig\0223\n\nstart_time\030\002 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\002\0221\n\010end_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\002\"`\n\034S" - + "cheduleTransferRunsResponse\022@\n\004runs\030\001 \003(" - + "\01322.google.cloud.bigquery.datatransfer.v" - + "1.TransferRun\"\207\003\n\036StartManualTransferRun" - + "sRequest\022G\n\006parent\030\001 \001(\tB7\372A4\n2bigqueryd" - + "atatransfer.googleapis.com/TransferConfi" - + "g\022o\n\024requested_time_range\030\003 \001(\0132O.google" - + ".cloud.bigquery.datatransfer.v1.StartMan" - + "ualTransferRunsRequest.TimeRangeH\000\0228\n\022re" - + "quested_run_time\030\004 \001(\0132\032.google.protobuf" - + ".TimestampH\000\032i\n\tTimeRange\022.\n\nstart_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\006\n\004time\"c\n\037StartManualTransferRunsRespon" - + "se\022@\n\004runs\030\001 \003(\01322.google.cloud.bigquery" - + ".datatransfer.v1.TransferRun\"A\n\030EnrollDa" - + "taSourcesRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017data_s" - + "ource_ids\030\002 \003(\t2\240!\n\023DataTransferService\022" - + "\346\001\n\rGetDataSource\022;.google.cloud.bigquer" - + "y.datatransfer.v1.GetDataSourceRequest\0321" - + ".google.cloud.bigquery.datatransfer.v1.D" - + "ataSource\"e\202\323\344\223\002X\022//v1/{name=projects/*/" - + "locations/*/dataSources/*}Z%\022#/v1/{name=" - + "projects/*/dataSources/*}\332A\004name\022\371\001\n\017Lis" - + "tDataSources\022=.google.cloud.bigquery.dat" - + "atransfer.v1.ListDataSourcesRequest\032>.go" - + "ogle.cloud.bigquery.datatransfer.v1.List" - + "DataSourcesResponse\"g\202\323\344\223\002X\022//v1/{parent" - + "=projects/*/locations/*}/dataSourcesZ%\022#" - + "/v1/{parent=projects/*}/dataSources\332A\006pa" - + "rent\022\266\002\n\024CreateTransferConfig\022B.google.c" - + "loud.bigquery.datatransfer.v1.CreateTran" - + "sferConfigRequest\0325.google.cloud.bigquer" - + "y.datatransfer.v1.TransferConfig\"\242\001\202\323\344\223\002" - + "\202\001\"3/v1/{parent=projects/*/locations/*}/" - + "transferConfigs:\017transfer_configZ:\"\'/v1/" - + "{parent=projects/*}/transferConfigs:\017tra" - + "nsfer_config\332A\026parent,transfer_config\022\333\002" - + "\n\024UpdateTransferConfig\022B.google.cloud.bi" - + "gquery.datatransfer.v1.UpdateTransferCon" - + "figRequest\0325.google.cloud.bigquery.datat" - + "ransfer.v1.TransferConfig\"\307\001\202\323\344\223\002\242\0012C/v1" - + "/{transfer_config.name=projects/*/locati" - + "ons/*/transferConfigs/*}:\017transfer_confi" - + "gZJ27/v1/{transfer_config.name=projects/" - + "*/transferConfigs/*}:\017transfer_config\332A\033" - + "transfer_config,update_mask\022\341\001\n\024DeleteTr" - + "ansferConfig\022B.google.cloud.bigquery.dat" - + "atransfer.v1.DeleteTransferConfigRequest" - + "\032\026.google.protobuf.Empty\"m\202\323\344\223\002`*3/v1/{n" - + "ame=projects/*/locations/*/transferConfi" - + "gs/*}Z)*\'/v1/{name=projects/*/transferCo" - + "nfigs/*}\332A\004name\022\372\001\n\021GetTransferConfig\022?." - + "google.cloud.bigquery.datatransfer.v1.Ge" - + "tTransferConfigRequest\0325.google.cloud.bi" - + "gquery.datatransfer.v1.TransferConfig\"m\202" - + "\323\344\223\002`\0223/v1/{name=projects/*/locations/*/" - + "transferConfigs/*}Z)\022\'/v1/{name=projects" - + "/*/transferConfigs/*}\332A\004name\022\215\002\n\023ListTra" - + "nsferConfigs\022A.google.cloud.bigquery.dat" - + "atransfer.v1.ListTransferConfigsRequest\032" - + "B.google.cloud.bigquery.datatransfer.v1." - + "ListTransferConfigsResponse\"o\202\323\344\223\002`\0223/v1" - + "/{parent=projects/*/locations/*}/transfe" - + "rConfigsZ)\022\'/v1/{parent=projects/*}/tran" - + "sferConfigs\332A\006parent\022\315\002\n\024ScheduleTransfe" - + "rRuns\022B.google.cloud.bigquery.datatransf" - + "er.v1.ScheduleTransferRunsRequest\032C.goog" - + "le.cloud.bigquery.datatransfer.v1.Schedu" - + "leTransferRunsResponse\"\253\001\210\002\001\202\323\344\223\002\204\001\"B/v1" - + "/{parent=projects/*/locations/*/transfer" - + "Configs/*}:scheduleRuns:\001*Z;\"6/v1/{paren" - + "t=projects/*/transferConfigs/*}:schedule" - + "Runs:\001*\332A\032parent,start_time,end_time\022\274\002\n" - + "\027StartManualTransferRuns\022E.google.cloud." - + "bigquery.datatransfer.v1.StartManualTran" - + "sferRunsRequest\032F.google.cloud.bigquery." - + "datatransfer.v1.StartManualTransferRunsR" - + "esponse\"\221\001\202\323\344\223\002\212\001\"E/v1/{parent=projects/" - + "*/locations/*/transferConfigs/*}:startMa" - + "nualRuns:\001*Z>\"9/v1/{parent=projects/*/tr" - + "ansferConfigs/*}:startManualRuns:\001*\022\377\001\n\016" - + "GetTransferRun\022<.google.cloud.bigquery.d" - + "atatransfer.v1.GetTransferRunRequest\0322.g" - + "oogle.cloud.bigquery.datatransfer.v1.Tra" - + "nsferRun\"{\202\323\344\223\002n\022:/v1/{name=projects/*/l" - + "ocations/*/transferConfigs/*/runs/*}Z0\022." - + "/v1/{name=projects/*/transferConfigs/*/r" - + "uns/*}\332A\004name\022\351\001\n\021DeleteTransferRun\022?.go" - + "ogle.cloud.bigquery.datatransfer.v1.Dele" - + "teTransferRunRequest\032\026.google.protobuf.E" - + "mpty\"{\202\323\344\223\002n*:/v1/{name=projects/*/locat" - + "ions/*/transferConfigs/*/runs/*}Z0*./v1/" - + "{name=projects/*/transferConfigs/*/runs/" - + "*}\332A\004name\022\222\002\n\020ListTransferRuns\022>.google." - + "cloud.bigquery.datatransfer.v1.ListTrans" - + "ferRunsRequest\032?.google.cloud.bigquery.d" - + "atatransfer.v1.ListTransferRunsResponse\"" - + "}\202\323\344\223\002n\022:/v1/{parent=projects/*/location" - + "s/*/transferConfigs/*}/runsZ0\022./v1/{pare" - + "nt=projects/*/transferConfigs/*}/runs\332A\006" - + "parent\022\262\002\n\020ListTransferLogs\022>.google.clo" - + "ud.bigquery.datatransfer.v1.ListTransfer" - + "LogsRequest\032?.google.cloud.bigquery.data" - + "transfer.v1.ListTransferLogsResponse\"\234\001\202" - + "\323\344\223\002\214\001\022I/v1/{parent=projects/*/locations" - + "/*/transferConfigs/*/runs/*}/transferLog" - + "sZ?\022=/v1/{parent=projects/*/transferConf" - + "igs/*/runs/*}/transferLogs\332A\006parent\022\236\002\n\017" - + "CheckValidCreds\022=.google.cloud.bigquery." - + "datatransfer.v1.CheckValidCredsRequest\032>" - + ".google.cloud.bigquery.datatransfer.v1.C" - + "heckValidCredsResponse\"\213\001\202\323\344\223\002~\"?/v1/{na" - + "me=projects/*/locations/*/dataSources/*}" - + ":checkValidCreds:\001*Z8\"3/v1/{name=project" - + "s/*/dataSources/*}:checkValidCreds:\001*\332A\004" - + "name\022\332\001\n\021EnrollDataSources\022?.google.clou" - + "d.bigquery.datatransfer.v1.EnrollDataSou" - + "rcesRequest\032\026.google.protobuf.Empty\"l\202\323\344" - + "\223\002f\"3/v1/{name=projects/*/locations/*}:e" - + "nrollDataSources:\001*Z,\"\'/v1/{name=project" - + "s/*}:enrollDataSources:\001*\032W\312A#bigqueryda" - + "tatransfer.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\217\002\n)c" - + "om.google.cloud.bigquery.datatransfer.v1" - + "B\021DataTransferProtoP\001ZQgoogle.golang.org" - + "/genproto/googleapis/cloud/bigquery/data" - + "transfer/v1;datatransfer\252\002%Google.Cloud." - + "BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\" - + "BigQuery\\DataTransfer\\V1\352\002)Google::Cloud" - + "::Bigquery::DataTransfer::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor, - new java.lang.String[] { - "ParamId", - "DisplayName", - "Description", - "Type", - "Required", - "Repeated", - "ValidationRegex", - "AllowedValues", - "MinValue", - "MaxValue", - "Fields", - "ValidationDescription", - "ValidationHelpUrl", - "Immutable", - "Recurse", - "Deprecated", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor, - new java.lang.String[] { - "Name", - "DataSourceId", - "DisplayName", - "Description", - "ClientId", - "Scopes", - "TransferType", - "SupportsMultipleTransfers", - "UpdateDeadlineSeconds", - "DefaultSchedule", - "SupportsCustomSchedule", - "Parameters", - "HelpUrl", - "AuthorizationType", - "DataRefreshType", - "DefaultDataRefreshWindowDays", - "ManualRunsDisabled", - "MinimumScheduleInterval", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor, - new java.lang.String[] { - "DataSources", "NextPageToken", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "TransferConfig", "AuthorizationCode", "VersionInfo", "ServiceAccountName", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor, - new java.lang.String[] { - "TransferConfig", - "AuthorizationCode", - "UpdateMask", - "VersionInfo", - "ServiceAccountName", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "DataSourceIds", "PageToken", "PageSize", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor, - new java.lang.String[] { - "TransferConfigs", "NextPageToken", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor, - new java.lang.String[] { - "Parent", "States", "PageToken", "PageSize", "RunAttempt", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor, - new java.lang.String[] { - "TransferRuns", "NextPageToken", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", "MessageTypes", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor, - new java.lang.String[] { - "TransferMessages", "NextPageToken", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor, - new java.lang.String[] { - "HasValidCreds", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor, - new java.lang.String[] { - "Parent", "StartTime", "EndTime", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor, - new java.lang.String[] { - "Runs", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor, - new java.lang.String[] { - "Parent", "RequestedTimeRange", "RequestedRunTime", "Time", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor = - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor, - new java.lang.String[] { - "Runs", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor, - new java.lang.String[] { - "Name", "DataSourceIds", - }); - 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.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java deleted file mode 100644 index c5a7300289d3..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface DeleteTransferConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java deleted file mode 100644 index d15864cb06ae..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java +++ /dev/null @@ -1,38 +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/datatransfer/v1/transfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface EmailPreferencesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.EmailPreferences) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If true, email notifications will be sent on transfer run failures.
-   * 
- * - * bool enable_failure_email = 1; - * - * @return The enableFailureEmail. - */ - boolean getEnableFailureEmail(); -} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java deleted file mode 100644 index cc45cf55a565..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface GetDataSourceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java deleted file mode 100644 index 30b572f11945..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface GetTransferConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java deleted file mode 100644 index eb36b33c0202..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java +++ /dev/null @@ -1,246 +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/datatransfer/v1/transfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public final class TransferProto { - private TransferProto() {} - - 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_datatransfer_v1_EmailPreferences_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_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/datatransfer/v1/" - + "transfer.proto\022%google.cloud.bigquery.da" - + "tatransfer.v1\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032\034googl" - + "e/protobuf/struct.proto\032\037google/protobuf" - + "/timestamp.proto\032\027google/rpc/status.prot" - + "o\"0\n\020EmailPreferences\022\034\n\024enable_failure_" - + "email\030\001 \001(\010\"\220\001\n\017ScheduleOptions\022\037\n\027disab" - + "le_auto_scheduling\030\003 \001(\010\022.\n\nstart_time\030\001" - + " \001(\0132\032.google.protobuf.Timestamp\022,\n\010end_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"(" - + "\n\010UserInfo\022\022\n\005email\030\001 \001(\tH\000\210\001\001B\010\n\006_email" - + "\"\265\007\n\016TransferConfig\022\014\n\004name\030\001 \001(\t\022 \n\026des" - + "tination_dataset_id\030\002 \001(\tH\000\022\024\n\014display_n" - + "ame\030\003 \001(\t\022\026\n\016data_source_id\030\005 \001(\t\022\'\n\006par" - + "ams\030\t \001(\0132\027.google.protobuf.Struct\022\020\n\010sc" - + "hedule\030\007 \001(\t\022P\n\020schedule_options\030\030 \001(\01326" - + ".google.cloud.bigquery.datatransfer.v1.S" - + "cheduleOptions\022 \n\030data_refresh_window_da" - + "ys\030\014 \001(\005\022\020\n\010disabled\030\r \001(\010\0224\n\013update_tim" - + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0226\n\rnext_run_time\030\010 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\022H\n\005state\030\n \001(\01624.google" - + ".cloud.bigquery.datatransfer.v1.Transfer" - + "StateB\003\340A\003\022\017\n\007user_id\030\013 \001(\003\022\033\n\016dataset_r" - + "egion\030\016 \001(\tB\003\340A\003\022!\n\031notification_pubsub_" - + "topic\030\017 \001(\t\022R\n\021email_preferences\030\022 \001(\01327" - + ".google.cloud.bigquery.datatransfer.v1.E" - + "mailPreferences\022M\n\nowner_info\030\033 \001(\0132/.go" - + "ogle.cloud.bigquery.datatransfer.v1.User" - + "InfoB\003\340A\003H\001\210\001\001:\271\001\352A\265\001\n2bigquerydatatrans" - + "fer.googleapis.com/TransferConfig\0224proje" - + "cts/{project}/transferConfigs/{transfer_" - + "config}\022Iprojects/{project}/locations/{l" - + "ocation}/transferConfigs/{transfer_confi" - + "g}B\r\n\013destinationB\r\n\013_owner_info\"\372\006\n\013Tra" - + "nsferRun\022\014\n\004name\030\001 \001(\t\0221\n\rschedule_time\030" - + "\003 \001(\0132\032.google.protobuf.Timestamp\022,\n\010run" - + "_time\030\n \001(\0132\032.google.protobuf.Timestamp\022" - + "(\n\014error_status\030\025 \001(\0132\022.google.rpc.Statu" - + "s\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + ",\n\006params\030\t \001(\0132\027.google.protobuf.Struct" - + "B\003\340A\003\022%\n\026destination_dataset_id\030\002 \001(\tB\003\340" - + "A\003H\000\022\033\n\016data_source_id\030\007 \001(\tB\003\340A\003\022C\n\005sta" - + "te\030\010 \001(\01624.google.cloud.bigquery.datatra" - + "nsfer.v1.TransferState\022\017\n\007user_id\030\013 \001(\003\022" - + "\025\n\010schedule\030\014 \001(\tB\003\340A\003\022&\n\031notification_p" - + "ubsub_topic\030\027 \001(\tB\003\340A\003\022W\n\021email_preferen" - + "ces\030\031 \001(\01327.google.cloud.bigquery.datatr" - + "ansfer.v1.EmailPreferencesB\003\340A\003:\304\001\352A\300\001\n\'" - + "bigquerydatatransfer.googleapis.com/Run\022" - + "?projects/{project}/transferConfigs/{tra" - + "nsfer_config}/runs/{run}\022Tprojects/{proj" - + "ect}/locations/{location}/transferConfig" - + "s/{transfer_config}/runs/{run}B\r\n\013destin" - + "ation\"\212\002\n\017TransferMessage\0220\n\014message_tim" - + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022X\n\010s" - + "everity\030\002 \001(\0162F.google.cloud.bigquery.da" - + "tatransfer.v1.TransferMessage.MessageSev" - + "erity\022\024\n\014message_text\030\003 \001(\t\"U\n\017MessageSe" - + "verity\022 \n\034MESSAGE_SEVERITY_UNSPECIFIED\020\000" - + "\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003*K\n\014Tr" - + "ansferType\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020" - + "\000\022\t\n\005BATCH\020\001\022\r\n\tSTREAMING\020\002\032\002\030\001*s\n\rTrans" - + "ferState\022\036\n\032TRANSFER_STATE_UNSPECIFIED\020\000" - + "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" - + "\004\022\n\n\006FAILED\020\005\022\r\n\tCANCELLED\020\006B\223\002\n)com.goo" - + "gle.cloud.bigquery.datatransfer.v1B\rTran" - + "sferProtoP\001ZQgoogle.golang.org/genproto/" - + "googleapis/cloud/bigquery/datatransfer/v" - + "1;datatransfer\242\002\005GCBDT\252\002%Google.Cloud.Bi" - + "gQuery.DataTransfer.V1\312\002%Google\\Cloud\\Bi" - + "gQuery\\DataTransfer\\V1\352\002)Google::Cloud::" - + "Bigquery::DataTransfer::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor, - new java.lang.String[] { - "EnableFailureEmail", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor, - new java.lang.String[] { - "DisableAutoScheduling", "StartTime", "EndTime", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor, - new java.lang.String[] { - "Email", "Email", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor, - new java.lang.String[] { - "Name", - "DestinationDatasetId", - "DisplayName", - "DataSourceId", - "Params", - "Schedule", - "ScheduleOptions", - "DataRefreshWindowDays", - "Disabled", - "UpdateTime", - "NextRunTime", - "State", - "UserId", - "DatasetRegion", - "NotificationPubsubTopic", - "EmailPreferences", - "OwnerInfo", - "Destination", - "OwnerInfo", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor, - new java.lang.String[] { - "Name", - "ScheduleTime", - "RunTime", - "ErrorStatus", - "StartTime", - "EndTime", - "UpdateTime", - "Params", - "DestinationDatasetId", - "DataSourceId", - "State", - "UserId", - "Schedule", - "NotificationPubsubTopic", - "EmailPreferences", - "Destination", - }); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor, - new java.lang.String[] { - "MessageTime", "Severity", "MessageText", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java deleted file mode 100644 index e76d03c75863..000000000000 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java +++ /dev/null @@ -1,225 +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/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface UpdateTransferConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Data transfer configuration to create.
-   * 
- * - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the transferConfig field is set. - */ - boolean hasTransferConfig(); - /** - * - * - *
-   * Required. Data transfer configuration to create.
-   * 
- * - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The transferConfig. - */ - com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(); - /** - * - * - *
-   * Required. Data transfer configuration to create.
-   * 
- * - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder(); - - /** - * - * - *
-   * Optional OAuth2 authorization code to use with this transfer configuration.
-   * If it is provided, the transfer configuration will be associated with the
-   * authorizing user.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
-   * 
- * - * string authorization_code = 3; - * - * @return The authorizationCode. - */ - java.lang.String getAuthorizationCode(); - /** - * - * - *
-   * Optional OAuth2 authorization code to use with this transfer configuration.
-   * If it is provided, the transfer configuration will be associated with the
-   * authorizing user.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
-   * 
- * - * string authorization_code = 3; - * - * @return The bytes for authorizationCode. - */ - com.google.protobuf.ByteString getAuthorizationCodeBytes(); - - /** - * - * - *
-   * Required. Required list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Required list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Required list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
-   * 
- * - * string version_info = 5; - * - * @return The versionInfo. - */ - java.lang.String getVersionInfo(); - /** - * - * - *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
-   * 
- * - * string version_info = 5; - * - * @return The bytes for versionInfo. - */ - com.google.protobuf.ByteString getVersionInfoBytes(); - - /** - * - * - *
-   * Optional service account name. If this field is set and
-   * "service_account_name" is set in update_mask, transfer config will be
-   * updated to use this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
-   * account.
-   * 
- * - * string service_account_name = 6; - * - * @return The serviceAccountName. - */ - java.lang.String getServiceAccountName(); - /** - * - * - *
-   * Optional service account name. If this field is set and
-   * "service_account_name" is set in update_mask, transfer config will be
-   * updated to use this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
-   * account.
-   * 
- * - * string service_account_name = 6; - * - * @return The bytes for serviceAccountName. - */ - com.google.protobuf.ByteString getServiceAccountNameBytes(); -} diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java similarity index 99% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java index 7331200723d7..6814572157fa 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java @@ -322,7 +322,7 @@ public final UnaryCallable getDataSourceCallab * } * * @param parent Required. The BigQuery project id for which data sources should be returned. Must - * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id} + * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDataSourcesPagedResponse listDataSources(LocationName parent) { @@ -354,7 +354,7 @@ public final ListDataSourcesPagedResponse listDataSources(LocationName parent) { * } * * @param parent Required. The BigQuery project id for which data sources should be returned. Must - * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id} + * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDataSourcesPagedResponse listDataSources(ProjectName parent) { @@ -386,7 +386,7 @@ public final ListDataSourcesPagedResponse listDataSources(ProjectName parent) { * } * * @param parent Required. The BigQuery project id for which data sources should be returned. Must - * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id} + * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDataSourcesPagedResponse listDataSources(String parent) { @@ -1045,7 +1045,7 @@ public final UnaryCallable getTransfer * } * } * - * @param parent Required. The BigQuery project id for which data sources should be returned: + * @param parent Required. The BigQuery project id for which transfer configs should be returned: * `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1078,7 +1078,7 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(LocationName p * } * } * - * @param parent Required. The BigQuery project id for which data sources should be returned: + * @param parent Required. The BigQuery project id for which transfer configs should be returned: * `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1111,7 +1111,7 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(ProjectName pa * } * } * - * @param parent Required. The BigQuery project id for which data sources should be returned: + * @param parent Required. The BigQuery project id for which transfer configs should be returned: * `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2225,9 +2225,9 @@ public final CheckValidCredsResponse checkValidCreds(CheckValidCredsRequest requ /** * Enroll data sources in a user project. This allows users to create transfer configurations for * these data sources. They will also appear in the ListDataSources RPC and as such, will appear - * in the BigQuery UI 'https://bigquery.cloud.google.com' (and the documents can be found at - * https://cloud.google.com/bigquery/bigquery-web-ui and - * https://cloud.google.com/bigquery/docs/working-with-transfers). + * in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found + * in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) + * and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers). * *

Sample code: * @@ -2258,9 +2258,9 @@ public final void enrollDataSources(EnrollDataSourcesRequest request) { /** * Enroll data sources in a user project. This allows users to create transfer configurations for * these data sources. They will also appear in the ListDataSources RPC and as such, will appear - * in the BigQuery UI 'https://bigquery.cloud.google.com' (and the documents can be found at - * https://cloud.google.com/bigquery/bigquery-web-ui and - * https://cloud.google.com/bigquery/docs/working-with-transfers). + * in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found + * in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) + * and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers). * *

Sample code: * diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java similarity index 99% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java index b7871d755033..d657fbea9989 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java @@ -31,6 +31,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.datatransfer.v1.stub.DataTransferServiceStubSettings; diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java similarity index 99% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java index 0aac6d9569ea..87a470d84a70 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java @@ -58,6 +58,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-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java similarity index 100% rename from java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java b/owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java new file mode 100644 index 000000000000..39dbc75c6e4a --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java @@ -0,0 +1,1583 @@ +package com.google.cloud.bigquery.datatransfer.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * This API allows users to manage their data transfers into BigQuery.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataTransferServiceGrpc { + + private DataTransferServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.datatransfer.v1.DataTransferService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetDataSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataSource", + requestType = com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.DataSource.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDataSourceMethod() { + io.grpc.MethodDescriptor getGetDataSourceMethod; + if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { + DataTransferServiceGrpc.getGetDataSourceMethod = getGetDataSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("GetDataSource")) + .build(); + } + } + } + return getGetDataSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDataSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataSources", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDataSourcesMethod() { + io.grpc.MethodDescriptor getListDataSourcesMethod; + if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { + DataTransferServiceGrpc.getListDataSourcesMethod = getListDataSourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListDataSources")) + .build(); + } + } + } + return getListDataSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateTransferConfigMethod() { + io.grpc.MethodDescriptor getCreateTransferConfigMethod; + if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) == null) { + DataTransferServiceGrpc.getCreateTransferConfigMethod = getCreateTransferConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("CreateTransferConfig")) + .build(); + } + } + } + return getCreateTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateTransferConfigMethod() { + io.grpc.MethodDescriptor getUpdateTransferConfigMethod; + if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) == null) { + DataTransferServiceGrpc.getUpdateTransferConfigMethod = getUpdateTransferConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("UpdateTransferConfig")) + .build(); + } + } + } + return getUpdateTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteTransferConfigMethod() { + io.grpc.MethodDescriptor getDeleteTransferConfigMethod; + if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) == null) { + DataTransferServiceGrpc.getDeleteTransferConfigMethod = getDeleteTransferConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("DeleteTransferConfig")) + .build(); + } + } + } + return getDeleteTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTransferConfigMethod() { + io.grpc.MethodDescriptor getGetTransferConfigMethod; + if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) == null) { + DataTransferServiceGrpc.getGetTransferConfigMethod = getGetTransferConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("GetTransferConfig")) + .build(); + } + } + } + return getGetTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTransferConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTransferConfigs", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTransferConfigsMethod() { + io.grpc.MethodDescriptor getListTransferConfigsMethod; + if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) == null) { + DataTransferServiceGrpc.getListTransferConfigsMethod = getListTransferConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListTransferConfigs")) + .build(); + } + } + } + return getListTransferConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getScheduleTransferRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ScheduleTransferRuns", + requestType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getScheduleTransferRunsMethod() { + io.grpc.MethodDescriptor getScheduleTransferRunsMethod; + if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) == null) { + DataTransferServiceGrpc.getScheduleTransferRunsMethod = getScheduleTransferRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScheduleTransferRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ScheduleTransferRuns")) + .build(); + } + } + } + return getScheduleTransferRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartManualTransferRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartManualTransferRuns", + requestType = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartManualTransferRunsMethod() { + io.grpc.MethodDescriptor getStartManualTransferRunsMethod; + if ((getStartManualTransferRunsMethod = DataTransferServiceGrpc.getStartManualTransferRunsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getStartManualTransferRunsMethod = DataTransferServiceGrpc.getStartManualTransferRunsMethod) == null) { + DataTransferServiceGrpc.getStartManualTransferRunsMethod = getStartManualTransferRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartManualTransferRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("StartManualTransferRuns")) + .build(); + } + } + } + return getStartManualTransferRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetTransferRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTransferRun", + requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTransferRunMethod() { + io.grpc.MethodDescriptor getGetTransferRunMethod; + if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { + DataTransferServiceGrpc.getGetTransferRunMethod = getGetTransferRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("GetTransferRun")) + .build(); + } + } + } + return getGetTransferRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteTransferRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTransferRun", + requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteTransferRunMethod() { + io.grpc.MethodDescriptor getDeleteTransferRunMethod; + if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) == null) { + DataTransferServiceGrpc.getDeleteTransferRunMethod = getDeleteTransferRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTransferRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("DeleteTransferRun")) + .build(); + } + } + } + return getDeleteTransferRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTransferRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTransferRuns", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTransferRunsMethod() { + io.grpc.MethodDescriptor getListTransferRunsMethod; + if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) == null) { + DataTransferServiceGrpc.getListTransferRunsMethod = getListTransferRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListTransferRuns")) + .build(); + } + } + } + return getListTransferRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTransferLogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTransferLogs", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTransferLogsMethod() { + io.grpc.MethodDescriptor getListTransferLogsMethod; + if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) == null) { + DataTransferServiceGrpc.getListTransferLogsMethod = getListTransferLogsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferLogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListTransferLogs")) + .build(); + } + } + } + return getListTransferLogsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCheckValidCredsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CheckValidCreds", + requestType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCheckValidCredsMethod() { + io.grpc.MethodDescriptor getCheckValidCredsMethod; + if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { + DataTransferServiceGrpc.getCheckValidCredsMethod = getCheckValidCredsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckValidCreds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("CheckValidCreds")) + .build(); + } + } + } + return getCheckValidCredsMethod; + } + + private static volatile io.grpc.MethodDescriptor getEnrollDataSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnrollDataSources", + requestType = com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getEnrollDataSourcesMethod() { + io.grpc.MethodDescriptor getEnrollDataSourcesMethod; + if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) == null) { + DataTransferServiceGrpc.getEnrollDataSourcesMethod = getEnrollDataSourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnrollDataSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("EnrollDataSources")) + .build(); + } + } + } + return getEnrollDataSourcesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DataTransferServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceStub(channel, callOptions); + } + }; + return DataTransferServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataTransferServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingStub(channel, callOptions); + } + }; + return DataTransferServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DataTransferServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceFutureStub(channel, callOptions); + } + }; + return DataTransferServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public static abstract class DataTransferServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public void getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataSourceMethod(), responseObserver); + } + + /** + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public void listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataSourcesMethod(), responseObserver); + } + + /** + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public void createTransferConfig(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTransferConfigMethod(), responseObserver); + } + + /** + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public void updateTransferConfig(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTransferConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public void deleteTransferConfig(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTransferConfigMethod(), responseObserver); + } + + /** + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public void getTransferConfig(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransferConfigMethod(), responseObserver); + } + + /** + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public void listTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTransferConfigsMethod(), responseObserver); + } + + /** + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public void scheduleTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getScheduleTransferRunsMethod(), responseObserver); + } + + /** + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public void startManualTransferRuns(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartManualTransferRunsMethod(), responseObserver); + } + + /** + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public void getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransferRunMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public void deleteTransferRun(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTransferRunMethod(), responseObserver); + } + + /** + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public void listTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTransferRunsMethod(), responseObserver); + } + + /** + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public void listTransferLogs(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTransferLogsMethod(), responseObserver); + } + + /** + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public void checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckValidCredsMethod(), responseObserver); + } + + /** + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public void enrollDataSources(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnrollDataSourcesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetDataSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, + com.google.cloud.bigquery.datatransfer.v1.DataSource>( + this, METHODID_GET_DATA_SOURCE))) + .addMethod( + getListDataSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse>( + this, METHODID_LIST_DATA_SOURCES))) + .addMethod( + getCreateTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( + this, METHODID_CREATE_TRANSFER_CONFIG))) + .addMethod( + getUpdateTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( + this, METHODID_UPDATE_TRANSFER_CONFIG))) + .addMethod( + getDeleteTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_TRANSFER_CONFIG))) + .addMethod( + getGetTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( + this, METHODID_GET_TRANSFER_CONFIG))) + .addMethod( + getListTransferConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse>( + this, METHODID_LIST_TRANSFER_CONFIGS))) + .addMethod( + getScheduleTransferRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse>( + this, METHODID_SCHEDULE_TRANSFER_RUNS))) + .addMethod( + getStartManualTransferRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse>( + this, METHODID_START_MANUAL_TRANSFER_RUNS))) + .addMethod( + getGetTransferRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferRun>( + this, METHODID_GET_TRANSFER_RUN))) + .addMethod( + getDeleteTransferRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_TRANSFER_RUN))) + .addMethod( + getListTransferRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse>( + this, METHODID_LIST_TRANSFER_RUNS))) + .addMethod( + getListTransferLogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse>( + this, METHODID_LIST_TRANSFER_LOGS))) + .addMethod( + getCheckValidCredsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse>( + this, METHODID_CHECK_VALID_CREDS))) + .addMethod( + getEnrollDataSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, + com.google.protobuf.Empty>( + this, METHODID_ENROLL_DATA_SOURCES))) + .build(); + } + } + + /** + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public static final class DataTransferServiceStub extends io.grpc.stub.AbstractAsyncStub { + private DataTransferServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceStub(channel, callOptions); + } + + /** + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public void getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public void listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public void createTransferConfig(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public void updateTransferConfig(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public void deleteTransferConfig(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public void getTransferConfig(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public void listTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public void scheduleTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public void startManualTransferRuns(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public void getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public void deleteTransferRun(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public void listTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public void listTransferLogs(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public void checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public void enrollDataSources(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public static final class DataTransferServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private DataTransferServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataSourcesMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig createTransferConfig(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTransferConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig updateTransferConfig(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTransferConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public com.google.protobuf.Empty deleteTransferConfig(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTransferConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTransferConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse listTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTransferConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse scheduleTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getScheduleTransferRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse startManualTransferRuns(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartManualTransferRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTransferRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public com.google.protobuf.Empty deleteTransferRun(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTransferRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse listTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTransferRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse listTransferLogs(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTransferLogsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckValidCredsMethod(), getCallOptions(), request); + } + + /** + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public com.google.protobuf.Empty enrollDataSources(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnrollDataSourcesMethod(), getCallOptions(), request); + } + } + + /** + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public static final class DataTransferServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private DataTransferServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDataSource( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDataSources( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTransferConfigs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture scheduleTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startManualTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTransferRun( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteTransferRun( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTransferLogs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture checkValidCreds( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), request); + } + + /** + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture enrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_DATA_SOURCE = 0; + private static final int METHODID_LIST_DATA_SOURCES = 1; + private static final int METHODID_CREATE_TRANSFER_CONFIG = 2; + private static final int METHODID_UPDATE_TRANSFER_CONFIG = 3; + private static final int METHODID_DELETE_TRANSFER_CONFIG = 4; + private static final int METHODID_GET_TRANSFER_CONFIG = 5; + private static final int METHODID_LIST_TRANSFER_CONFIGS = 6; + private static final int METHODID_SCHEDULE_TRANSFER_RUNS = 7; + private static final int METHODID_START_MANUAL_TRANSFER_RUNS = 8; + private static final int METHODID_GET_TRANSFER_RUN = 9; + private static final int METHODID_DELETE_TRANSFER_RUN = 10; + private static final int METHODID_LIST_TRANSFER_RUNS = 11; + private static final int METHODID_LIST_TRANSFER_LOGS = 12; + private static final int METHODID_CHECK_VALID_CREDS = 13; + private static final int METHODID_ENROLL_DATA_SOURCES = 14; + + 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 DataTransferServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataTransferServiceImplBase 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_GET_DATA_SOURCE: + serviceImpl.getDataSource((com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DATA_SOURCES: + serviceImpl.listDataSources((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TRANSFER_CONFIG: + serviceImpl.createTransferConfig((com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TRANSFER_CONFIG: + serviceImpl.updateTransferConfig((com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TRANSFER_CONFIG: + serviceImpl.deleteTransferConfig((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TRANSFER_CONFIG: + serviceImpl.getTransferConfig((com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TRANSFER_CONFIGS: + serviceImpl.listTransferConfigs((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SCHEDULE_TRANSFER_RUNS: + serviceImpl.scheduleTransferRuns((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_MANUAL_TRANSFER_RUNS: + serviceImpl.startManualTransferRuns((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TRANSFER_RUN: + serviceImpl.getTransferRun((com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TRANSFER_RUN: + serviceImpl.deleteTransferRun((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TRANSFER_RUNS: + serviceImpl.listTransferRuns((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TRANSFER_LOGS: + serviceImpl.listTransferLogs((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_VALID_CREDS: + serviceImpl.checkValidCreds((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ENROLL_DATA_SOURCES: + serviceImpl.enrollDataSources((com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) 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 DataTransferServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataTransferServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataTransferService"); + } + } + + private static final class DataTransferServiceFileDescriptorSupplier + extends DataTransferServiceBaseDescriptorSupplier { + DataTransferServiceFileDescriptorSupplier() {} + } + + private static final class DataTransferServiceMethodDescriptorSupplier + extends DataTransferServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DataTransferServiceMethodDescriptorSupplier(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 (DataTransferServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataTransferServiceFileDescriptorSupplier()) + .addMethod(getGetDataSourceMethod()) + .addMethod(getListDataSourcesMethod()) + .addMethod(getCreateTransferConfigMethod()) + .addMethod(getUpdateTransferConfigMethod()) + .addMethod(getDeleteTransferConfigMethod()) + .addMethod(getGetTransferConfigMethod()) + .addMethod(getListTransferConfigsMethod()) + .addMethod(getScheduleTransferRunsMethod()) + .addMethod(getStartManualTransferRunsMethod()) + .addMethod(getGetTransferRunMethod()) + .addMethod(getDeleteTransferRunMethod()) + .addMethod(getListTransferRunsMethod()) + .addMethod(getListTransferLogsMethod()) + .addMethod(getCheckValidCredsMethod()) + .addMethod(getEnrollDataSourcesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java similarity index 63% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java index 20f06318da7a..9fb3cfb9944d 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to determine whether the user has valid credentials. This method
  * is used to limit the number of OAuth popups in the user interface. The
@@ -32,61 +15,54 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest}
  */
-public final class CheckValidCredsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CheckValidCredsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest)
     CheckValidCredsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CheckValidCredsRequest.newBuilder() to construct.
   private CheckValidCredsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CheckValidCredsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CheckValidCredsRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class,
-            com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The data source in the form:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
    * 
* - * - * string 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 @@ -95,33 +71,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The data source in the form:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
    * 
* - * - * string 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 { @@ -130,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +115,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_); } @@ -166,15 +140,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.datatransfer.v1.CheckValidCredsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other = - (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other = (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,104 +168,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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; } /** - * - * *
    * A request to determine whether the user has valid credentials. This method
    * is used to limit the number of OAuth popups in the user interface. The
@@ -303,32 +269,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest}
    */
-  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.datatransfer.v1.CheckValidCredsRequest)
       com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class,
-              com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.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();
@@ -338,14 +305,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstanceForType() {
       return com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance();
     }
 
@@ -360,8 +326,7 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest build()
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest result =
-          new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest result = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -371,50 +336,46 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest buildPar
     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.datatransfer.v1.CheckValidCredsRequest) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other) {
-      if (other
-          == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other) {
+      if (other == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -445,19 +406,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              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) {
@@ -470,24 +429,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * - * string 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; @@ -496,25 +451,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * - * string 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 { @@ -522,80 +474,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,43 +544,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckValidCredsRequest 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 CheckValidCredsRequest 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; @@ -653,8 +590,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java new file mode 100644 index 000000000000..ac13971fb152 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface CheckValidCredsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The data source in the form:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The data source in the form:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java similarity index 62% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java index d8ebfaf288de..bbf869561235 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java @@ -1,81 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A response indicating whether the credentials exist and are valid.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse} */ -public final class CheckValidCredsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CheckValidCredsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) CheckValidCredsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CheckValidCredsResponse.newBuilder() to construct. private CheckValidCredsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CheckValidCredsResponse() {} + private CheckValidCredsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CheckValidCredsResponse(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); } public static final int HAS_VALID_CREDS_FIELD_NUMBER = 1; private boolean hasValidCreds_; /** - * - * *
    * If set to `true`, the credentials exist and are valid.
    * 
* * bool has_valid_creds = 1; - * * @return The hasValidCreds. */ @java.lang.Override @@ -84,7 +63,6 @@ public boolean getHasValidCreds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,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 (hasValidCreds_ != false) { output.writeBool(1, hasValidCreds_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (hasValidCreds_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, hasValidCreds_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, hasValidCreds_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,15 +100,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.datatransfer.v1.CheckValidCredsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other = - (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other = (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) obj; - if (getHasValidCreds() != other.getHasValidCreds()) return false; + if (getHasValidCreds() + != other.getHasValidCreds()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,145 +121,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HAS_VALID_CREDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasValidCreds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasValidCreds()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse - 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.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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; } /** - * - * *
    * A response indicating whether the credentials exist and are valid.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse} */ - 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.datatransfer.v1.CheckValidCredsResponse) com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.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(); @@ -289,14 +261,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance(); } @@ -311,8 +282,7 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse result = - new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse result = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse(this); result.hasValidCreds_ = hasValidCreds_; onBuilt(); return result; @@ -322,50 +292,46 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse buildPa 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.datatransfer.v1.CheckValidCredsResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance()) return this; if (other.getHasValidCreds() != false) { setHasValidCreds(other.getHasValidCreds()); } @@ -395,19 +361,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - hasValidCreds_ = input.readBool(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + hasValidCreds_ = input.readBool(); + + break; + } // case 8 + 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) { @@ -418,16 +382,13 @@ public Builder mergeFrom( return this; } - private boolean hasValidCreds_; + private boolean hasValidCreds_ ; /** - * - * *
      * If set to `true`, the credentials exist and are valid.
      * 
* * bool has_valid_creds = 1; - * * @return The hasValidCreds. */ @java.lang.Override @@ -435,43 +396,37 @@ public boolean getHasValidCreds() { return hasValidCreds_; } /** - * - * *
      * If set to `true`, the credentials exist and are valid.
      * 
* * bool has_valid_creds = 1; - * * @param value The hasValidCreds to set. * @return This builder for chaining. */ public Builder setHasValidCreds(boolean value) { - + hasValidCreds_ = value; onChanged(); return this; } /** - * - * *
      * If set to `true`, the credentials exist and are valid.
      * 
* * bool has_valid_creds = 1; - * * @return This builder for chaining. */ public Builder clearHasValidCreds() { - + hasValidCreds_ = 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); } @@ -481,43 +436,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckValidCredsResponse 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 CheckValidCredsResponse 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; @@ -529,8 +482,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java new file mode 100644 index 000000000000..c66626a729e5 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface CheckValidCredsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * If set to `true`, the credentials exist and are valid.
+   * 
+ * + * bool has_valid_creds = 1; + * @return The hasValidCreds. + */ + boolean getHasValidCreds(); +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java similarity index 50% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java index 13e1885b4e1f..f156d7bbca28 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java @@ -1,47 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to create a data transfer configuration. If new credentials are
- * needed for this transfer configuration, an authorization code must be
- * provided. If an authorization code is provided, the transfer configuration
- * will be associated with the user id corresponding to the authorization code.
+ * needed for this transfer configuration, authorization info must be provided.
+ * If authorization info is provided, the transfer configuration will be
+ * associated with the user id corresponding to the authorization info.
  * Otherwise, the transfer configuration will be associated with the calling
  * user.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest} */ -public final class CreateTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateTransferConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) CreateTransferConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateTransferConfigRequest.newBuilder() to construct. private CreateTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateTransferConfigRequest() { parent_ = ""; authorizationCode_ = ""; @@ -51,35 +33,32 @@ private CreateTransferConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateTransferConfigRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The BigQuery project id where the transfer configuration should be created.
    * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -87,10 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * destination bigquery dataset do not match - the request will fail.
    * 
* - * - * string 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 @@ -99,15 +75,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The BigQuery project id where the transfer configuration should be created.
    * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -115,18 +90,17 @@ public java.lang.String getParent() {
    * destination bigquery dataset do not match - the request will fail.
    * 
* - * - * string 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 { @@ -137,16 +111,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int TRANSFER_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_; /** - * - * *
    * Required. Data transfer configuration to create.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the transferConfig field is set. */ @java.lang.Override @@ -154,66 +123,49 @@ public boolean hasTransferConfig() { return transferConfig_ != null; } /** - * - * *
    * Required. Data transfer configuration to create.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The transferConfig. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { - return transferConfig_ == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() - : transferConfig_; + return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; } /** - * - * *
    * Required. Data transfer configuration to create.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder - getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { return getTransferConfig(); } public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object authorizationCode_; /** - * - * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
-   * This is required if new credentials are needed, as indicated by
-   * `CheckValidCreds`.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
    * 
* * string authorization_code = 3; - * * @return The authorizationCode. */ @java.lang.Override @@ -222,43 +174,41 @@ public java.lang.String getAuthorizationCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; } } /** - * - * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
-   * This is required if new credentials are needed, as indicated by
-   * `CheckValidCreds`.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
    * 
* * string authorization_code = 3; - * * @return The bytes for authorizationCode. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString + getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -269,19 +219,23 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() { public static final int VERSION_INFO_FIELD_NUMBER = 5; private volatile java.lang.Object versionInfo_; /** - * - * *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
    * 
* * string version_info = 5; - * * @return The versionInfo. */ @java.lang.Override @@ -290,34 +244,41 @@ public java.lang.String getVersionInfo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } } /** - * - * *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
    * 
* * string version_info = 5; - * * @return The bytes for versionInfo. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionInfoBytes() { + public com.google.protobuf.ByteString + getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -328,17 +289,18 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountName_; /** - * - * *
-   * Optional service account name. If this field is set, transfer config will
-   * be created with this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
    * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
    * 
* * string service_account_name = 6; - * * @return The serviceAccountName. */ @java.lang.Override @@ -347,32 +309,36 @@ public java.lang.String getServiceAccountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; } } /** - * - * *
-   * Optional service account name. If this field is set, transfer config will
-   * be created with this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
    * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
    * 
* * string service_account_name = 6; - * * @return The bytes for serviceAccountName. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountNameBytes() { + public com.google.protobuf.ByteString + getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -381,7 +347,6 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,7 +358,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_); } @@ -422,7 +388,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (transferConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransferConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTransferConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authorizationCode_); @@ -441,22 +408,26 @@ 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.datatransfer.v1.CreateTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other = - (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasTransferConfig() != other.hasTransferConfig()) return false; if (hasTransferConfig()) { - if (!getTransferConfig().equals(other.getTransferConfig())) return false; - } - if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; - if (!getVersionInfo().equals(other.getVersionInfo())) return false; - if (!getServiceAccountName().equals(other.getServiceAccountName())) return false; + if (!getTransferConfig() + .equals(other.getTransferConfig())) return false; + } + if (!getAuthorizationCode() + .equals(other.getAuthorizationCode())) return false; + if (!getVersionInfo() + .equals(other.getVersionInfo())) return false; + if (!getServiceAccountName() + .equals(other.getServiceAccountName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -486,143 +457,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - 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.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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; } /** - * - * *
    * A request to create a data transfer configuration. If new credentials are
-   * needed for this transfer configuration, an authorization code must be
-   * provided. If an authorization code is provided, the transfer configuration
-   * will be associated with the user id corresponding to the authorization code.
+   * needed for this transfer configuration, authorization info must be provided.
+   * If authorization info is provided, the transfer configuration will be
+   * associated with the user id corresponding to the authorization info.
    * Otherwise, the transfer configuration will be associated with the calling
    * user.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest} */ - 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.datatransfer.v1.CreateTransferConfigRequest) com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.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(); @@ -644,16 +606,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -667,8 +627,7 @@ public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest bui @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest result = - new com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest(this); + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest(this); result.parent_ = parent_; if (transferConfigBuilder_ == null) { result.transferConfig_ = transferConfig_; @@ -686,51 +645,46 @@ public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest bui 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.datatransfer.v1.CreateTransferConfigRequest) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -776,43 +730,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getTransferConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getTransferConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - authorizationCode_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + authorizationCode_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 42: - { - versionInfo_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 42: { + versionInfo_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: - { - serviceAccountName_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: { + serviceAccountName_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + 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) { @@ -825,8 +775,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -834,16 +782,14 @@ public Builder mergeFrom(
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * - * string 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; @@ -852,8 +798,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -861,17 +805,16 @@ public java.lang.String getParent() {
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * - * string 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 { @@ -879,8 +822,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -888,25 +829,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -914,21 +851,16 @@ public Builder setParent(java.lang.String value) {
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -936,19 +868,17 @@ public Builder clearParent() {
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -956,61 +886,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> - transferConfigBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> transferConfigBuilder_; /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the transferConfig field is set. */ public boolean hasTransferConfig() { return transferConfigBuilder_ != null || transferConfig_ != null; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The transferConfig. */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { if (transferConfigBuilder_ == null) { - return transferConfig_ == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() - : transferConfig_; + return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; } else { return transferConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder setTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1024,15 +934,11 @@ public Builder setTransferConfig( return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTransferConfig( com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { @@ -1046,24 +952,17 @@ public Builder setTransferConfig( return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder mergeTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (transferConfig_ != null) { transferConfig_ = - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_).mergeFrom(value).buildPartial(); } else { transferConfig_ = value; } @@ -1075,15 +974,11 @@ public Builder mergeTransferConfig( return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTransferConfig() { if (transferConfigBuilder_ == null) { @@ -1097,66 +992,48 @@ public Builder clearTransferConfig() { return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder - getTransferConfigBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder getTransferConfigBuilder() { + onChanged(); return getTransferConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder - getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { if (transferConfigBuilder_ != null) { return transferConfigBuilder_.getMessageOrBuilder(); } else { - return transferConfig_ == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() - : transferConfig_; + return transferConfig_ == null ? + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; } } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> getTransferConfigFieldBuilder() { if (transferConfigBuilder_ == null) { - transferConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( - getTransferConfig(), getParentForChildren(), isClean()); + transferConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( + getTransferConfig(), + getParentForChildren(), + isClean()); transferConfig_ = null; } return transferConfigBuilder_; @@ -1164,34 +1041,30 @@ public Builder clearTransferConfig() { private java.lang.Object authorizationCode_ = ""; /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * This is required if new credentials are needed, as indicated by
-     * `CheckValidCreds`.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string authorization_code = 3; - * * @return The authorizationCode. */ public java.lang.String getAuthorizationCode() { java.lang.Object ref = authorizationCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; @@ -1200,35 +1073,32 @@ public java.lang.String getAuthorizationCode() { } } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * This is required if new credentials are needed, as indicated by
-     * `CheckValidCreds`.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string authorization_code = 3; - * * @return The bytes for authorizationCode. */ - public com.google.protobuf.ByteString getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString + getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -1236,103 +1106,90 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() { } } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * This is required if new credentials are needed, as indicated by
-     * `CheckValidCreds`.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string authorization_code = 3; - * * @param value The authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCode(java.lang.String value) { + public Builder setAuthorizationCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizationCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * This is required if new credentials are needed, as indicated by
-     * `CheckValidCreds`.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string authorization_code = 3; - * * @return This builder for chaining. */ public Builder clearAuthorizationCode() { - + authorizationCode_ = getDefaultInstance().getAuthorizationCode(); onChanged(); return this; } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * This is required if new credentials are needed, as indicated by
-     * `CheckValidCreds`.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string authorization_code = 3; - * * @param value The bytes for authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) { + public Builder setAuthorizationCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationCode_ = value; onChanged(); return this; @@ -1340,25 +1197,30 @@ public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object versionInfo_ = ""; /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string version_info = 5; - * * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; @@ -1367,26 +1229,32 @@ public java.lang.String getVersionInfo() { } } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string version_info = 5; - * * @return The bytes for versionInfo. */ - public com.google.protobuf.ByteString getVersionInfoBytes() { + public com.google.protobuf.ByteString + getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -1394,76 +1262,90 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { } } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string version_info = 5; - * * @param value The versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfo(java.lang.String value) { + public Builder setVersionInfo( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + versionInfo_ = value; onChanged(); return this; } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string version_info = 5; - * * @return This builder for chaining. */ public Builder clearVersionInfo() { - + versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * create the transfer config.
      * 
* * string version_info = 5; - * * @param value The bytes for versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { + public Builder setVersionInfoBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + versionInfo_ = value; onChanged(); return this; @@ -1471,23 +1353,25 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountName_ = ""; /** - * - * *
-     * Optional service account name. If this field is set, transfer config will
-     * be created with this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @return The serviceAccountName. */ public java.lang.String getServiceAccountName() { java.lang.Object ref = serviceAccountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; @@ -1496,24 +1380,27 @@ public java.lang.String getServiceAccountName() { } } /** - * - * *
-     * Optional service account name. If this field is set, transfer config will
-     * be created with this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @return The bytes for serviceAccountName. */ - public com.google.protobuf.ByteString getServiceAccountNameBytes() { + public com.google.protobuf.ByteString + getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -1521,77 +1408,82 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } } /** - * - * *
-     * Optional service account name. If this field is set, transfer config will
-     * be created with this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @param value The serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountName(java.lang.String value) { + public Builder setServiceAccountName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountName_ = value; onChanged(); return this; } /** - * - * *
-     * Optional service account name. If this field is set, transfer config will
-     * be created with this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @return This builder for chaining. */ public Builder clearServiceAccountName() { - + serviceAccountName_ = getDefaultInstance().getServiceAccountName(); onChanged(); return this; } /** - * - * *
-     * Optional service account name. If this field is set, transfer config will
-     * be created with this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @param value The bytes for serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1601,43 +1493,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTransferConfigRequest 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 CreateTransferConfigRequest 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; @@ -1649,8 +1539,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..c69646c59657 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java @@ -0,0 +1,184 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface CreateTransferConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The BigQuery project id where the transfer configuration should be created.
+   * Must be in the format projects/{project_id}/locations/{location_id} or
+   * projects/{project_id}. If specified location and location of the
+   * destination bigquery dataset do not match - the request will fail.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The BigQuery project id where the transfer configuration should be created.
+   * Must be in the format projects/{project_id}/locations/{location_id} or
+   * projects/{project_id}. If specified location and location of the
+   * destination bigquery dataset do not match - the request will fail.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Data transfer configuration to create.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the transferConfig field is set. + */ + boolean hasTransferConfig(); + /** + *
+   * Required. Data transfer configuration to create.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The transferConfig. + */ + com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(); + /** + *
+   * Required. Data transfer configuration to create.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder(); + + /** + *
+   * Optional OAuth2 authorization code to use with this transfer configuration.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
+   * 
+ * + * string authorization_code = 3; + * @return The authorizationCode. + */ + java.lang.String getAuthorizationCode(); + /** + *
+   * Optional OAuth2 authorization code to use with this transfer configuration.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
+   * 
+ * + * string authorization_code = 3; + * @return The bytes for authorizationCode. + */ + com.google.protobuf.ByteString + getAuthorizationCodeBytes(); + + /** + *
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
+   * 
+ * + * string version_info = 5; + * @return The versionInfo. + */ + java.lang.String getVersionInfo(); + /** + *
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * create the transfer config.
+   * 
+ * + * string version_info = 5; + * @return The bytes for versionInfo. + */ + com.google.protobuf.ByteString + getVersionInfoBytes(); + + /** + *
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
+   * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
+   * 
+ * + * string service_account_name = 6; + * @return The serviceAccountName. + */ + java.lang.String getServiceAccountName(); + /** + *
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
+   * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
+   * 
+ * + * string service_account_name = 6; + * @return The bytes for serviceAccountName. + */ + com.google.protobuf.ByteString + getServiceAccountNameBytes(); +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java similarity index 71% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java index 6ad695d516d4..91e1eef1f21f 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Defines the properties and custom parameters for a data source.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSource} */ -public final class DataSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DataSource) DataSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataSource.newBuilder() to construct. private DataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataSource() { name_ = ""; dataSourceId_ = ""; @@ -54,43 +36,39 @@ private DataSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataSource(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSource.class, - com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSource.class, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); } /** - * - * *
    * The type of authorization needed for this data source.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType} */ - public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum { + public enum AuthorizationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Type unspecified.
      * 
@@ -99,8 +77,6 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum */ AUTHORIZATION_TYPE_UNSPECIFIED(0), /** - * - * *
      * Use OAuth 2 authorization codes that can be exchanged
      * for a refresh token on the backend.
@@ -110,8 +86,6 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum
      */
     AUTHORIZATION_CODE(1),
     /**
-     *
-     *
      * 
      * Return an authorization code for a given Google+ page that can then be
      * exchanged for a refresh token on the backend.
@@ -121,8 +95,6 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum
      */
     GOOGLE_PLUS_AUTHORIZATION_CODE(2),
     /**
-     *
-     *
      * 
      * Use First Party OAuth.
      * 
@@ -134,8 +106,6 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Type unspecified.
      * 
@@ -144,8 +114,6 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUTHORIZATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use OAuth 2 authorization codes that can be exchanged
      * for a refresh token on the backend.
@@ -155,8 +123,6 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int AUTHORIZATION_CODE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Return an authorization code for a given Google+ page that can then be
      * exchanged for a refresh token on the backend.
@@ -166,8 +132,6 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int GOOGLE_PLUS_AUTHORIZATION_CODE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Use First Party OAuth.
      * 
@@ -176,6 +140,7 @@ public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum */ public static final int FIRST_PARTY_OAUTH_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -200,16 +165,11 @@ public static AuthorizationType valueOf(int value) { */ public static AuthorizationType forNumber(int value) { switch (value) { - case 0: - return AUTHORIZATION_TYPE_UNSPECIFIED; - case 1: - return AUTHORIZATION_CODE; - case 2: - return GOOGLE_PLUS_AUTHORIZATION_CODE; - case 3: - return FIRST_PARTY_OAUTH; - default: - return null; + case 0: return AUTHORIZATION_TYPE_UNSPECIFIED; + case 1: return AUTHORIZATION_CODE; + case 2: return GOOGLE_PLUS_AUTHORIZATION_CODE; + case 3: return FIRST_PARTY_OAUTH; + default: return null; } } @@ -217,31 +177,29 @@ public static AuthorizationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AuthorizationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthorizationType findValueByNumber(int number) { + return AuthorizationType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AuthorizationType findValueByNumber(int number) { - return AuthorizationType.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.datatransfer.v1.DataSource.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataSource.getDescriptor().getEnumTypes().get(0); } private static final AuthorizationType[] VALUES = values(); @@ -249,7 +207,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static AuthorizationType 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; @@ -267,18 +226,15 @@ private AuthorizationType(int value) { } /** - * - * *
    * Represents how the data source supports data auto refresh.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType} */ - public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum { + public enum DataRefreshType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The data source won't support data auto refresh, which is default value.
      * 
@@ -287,8 +243,6 @@ public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum { */ DATA_REFRESH_TYPE_UNSPECIFIED(0), /** - * - * *
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Does not allow custom values to be set for each
@@ -299,8 +253,6 @@ public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum {
      */
     SLIDING_WINDOW(1),
     /**
-     *
-     *
      * 
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Allows custom values to be set for each transfer
@@ -314,8 +266,6 @@ public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The data source won't support data auto refresh, which is default value.
      * 
@@ -324,8 +274,6 @@ public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_REFRESH_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Does not allow custom values to be set for each
@@ -336,8 +284,6 @@ public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SLIDING_WINDOW_VALUE = 1;
     /**
-     *
-     *
      * 
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Allows custom values to be set for each transfer
@@ -348,6 +294,7 @@ public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_SLIDING_WINDOW_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -372,45 +319,40 @@ public static DataRefreshType valueOf(int value) {
      */
     public static DataRefreshType forNumber(int value) {
       switch (value) {
-        case 0:
-          return DATA_REFRESH_TYPE_UNSPECIFIED;
-        case 1:
-          return SLIDING_WINDOW;
-        case 2:
-          return CUSTOM_SLIDING_WINDOW;
-        default:
-          return null;
+        case 0: return DATA_REFRESH_TYPE_UNSPECIFIED;
+        case 1: return SLIDING_WINDOW;
+        case 2: return CUSTOM_SLIDING_WINDOW;
+        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<
+        DataRefreshType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public DataRefreshType findValueByNumber(int number) {
+              return DataRefreshType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public DataRefreshType findValueByNumber(int number) {
-                return DataRefreshType.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.datatransfer.v1.DataSource.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataSource.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final DataRefreshType[] VALUES = values();
@@ -418,7 +360,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static DataRefreshType 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;
@@ -438,14 +381,11 @@ private DataRefreshType(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -454,29 +394,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -487,14 +427,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DATA_SOURCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dataSourceId_; /** - * - * *
    * Data source id.
    * 
* * string data_source_id = 2; - * * @return The dataSourceId. */ @java.lang.Override @@ -503,29 +440,29 @@ public java.lang.String getDataSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; } } /** - * - * *
    * Data source id.
    * 
* * string data_source_id = 2; - * * @return The bytes for dataSourceId. */ @java.lang.Override - public com.google.protobuf.ByteString getDataSourceIdBytes() { + public com.google.protobuf.ByteString + getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -536,14 +473,11 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** - * - * *
    * User friendly data source name.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -552,29 +486,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * User friendly data source name.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -585,14 +519,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** - * - * *
    * User friendly data source description string.
    * 
* * string description = 4; - * * @return The description. */ @java.lang.Override @@ -601,29 +532,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 friendly data source description string.
    * 
* * string description = 4; - * * @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 { @@ -634,14 +565,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CLIENT_ID_FIELD_NUMBER = 5; private volatile java.lang.Object clientId_; /** - * - * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; - * * @return The clientId. */ @java.lang.Override @@ -650,29 +578,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; } } /** - * - * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; - * * @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 { @@ -683,8 +611,6 @@ public com.google.protobuf.ByteString getClientIdBytes() { public static final int SCOPES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList scopes_; /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -692,15 +618,13 @@ public com.google.protobuf.ByteString getClientIdBytes() {
    * 
* * repeated string scopes = 6; - * * @return A list containing the scopes. */ - public com.google.protobuf.ProtocolStringList getScopesList() { + public com.google.protobuf.ProtocolStringList + getScopesList() { return scopes_; } /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -708,15 +632,12 @@ public com.google.protobuf.ProtocolStringList getScopesList() {
    * 
* * repeated string scopes = 6; - * * @return The count of scopes. */ public int getScopesCount() { return scopes_.size(); } /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -724,7 +645,6 @@ public int getScopesCount() {
    * 
* * repeated string scopes = 6; - * * @param index The index of the element to return. * @return The scopes at the given index. */ @@ -732,8 +652,6 @@ public java.lang.String getScopes(int index) { return scopes_.get(index); } /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -741,95 +659,71 @@ public java.lang.String getScopes(int index) {
    * 
* * repeated string scopes = 6; - * * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ - public com.google.protobuf.ByteString getScopesBytes(int index) { + public com.google.protobuf.ByteString + getScopesBytes(int index) { return scopes_.getByteString(index); } public static final int TRANSFER_TYPE_FIELD_NUMBER = 7; private int transferType_; /** - * - * *
    * Deprecated. This field has no effect.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The enum numeric value on the wire for transferType. */ - @java.lang.Override - @java.lang.Deprecated - public int getTransferTypeValue() { + @java.lang.Override @java.lang.Deprecated public int getTransferTypeValue() { return transferType_; } /** - * - * *
    * Deprecated. This field has no effect.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The transferType. */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { + @java.lang.Override @java.lang.Deprecated public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferType result = - com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferType result = com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED : result; } public static final int SUPPORTS_MULTIPLE_TRANSFERS_FIELD_NUMBER = 8; private boolean supportsMultipleTransfers_; /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=378 + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return The supportsMultipleTransfers. */ @java.lang.Override - @java.lang.Deprecated - public boolean getSupportsMultipleTransfers() { + @java.lang.Deprecated public boolean getSupportsMultipleTransfers() { return supportsMultipleTransfers_; } public static final int UPDATE_DEADLINE_SECONDS_FIELD_NUMBER = 9; private int updateDeadlineSeconds_; /** - * - * *
    * The number of seconds to wait for an update from the data source
    * before the Data Transfer Service marks the transfer as FAILED.
    * 
* * int32 update_deadline_seconds = 9; - * * @return The updateDeadlineSeconds. */ @java.lang.Override @@ -840,8 +734,6 @@ public int getUpdateDeadlineSeconds() { public static final int DEFAULT_SCHEDULE_FIELD_NUMBER = 10; private volatile java.lang.Object defaultSchedule_; /** - * - * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -851,7 +743,6 @@ public int getUpdateDeadlineSeconds() {
    * 
* * string default_schedule = 10; - * * @return The defaultSchedule. */ @java.lang.Override @@ -860,15 +751,14 @@ public java.lang.String getDefaultSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultSchedule_ = s; return s; } } /** - * - * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -878,15 +768,16 @@ public java.lang.String getDefaultSchedule() {
    * 
* * string default_schedule = 10; - * * @return The bytes for defaultSchedule. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultScheduleBytes() { + public com.google.protobuf.ByteString + getDefaultScheduleBytes() { java.lang.Object ref = defaultSchedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultSchedule_ = b; return b; } else { @@ -897,8 +788,6 @@ public com.google.protobuf.ByteString getDefaultScheduleBytes() { public static final int SUPPORTS_CUSTOM_SCHEDULE_FIELD_NUMBER = 11; private boolean supportsCustomSchedule_; /** - * - * *
    * Specifies whether the data source supports a user defined schedule, or
    * operates on the default schedule.
@@ -906,7 +795,6 @@ public com.google.protobuf.ByteString getDefaultScheduleBytes() {
    * 
* * bool supports_custom_schedule = 11; - * * @return The supportsCustomSchedule. */ @java.lang.Override @@ -917,91 +805,71 @@ public boolean getSupportsCustomSchedule() { public static final int PARAMETERS_FIELD_NUMBER = 12; private java.util.List parameters_; /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ @java.lang.Override - public java.util.List - getParametersList() { + public java.util.List getParametersList() { return parameters_; } /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + public java.util.List getParametersOrBuilderList() { return parameters_; } /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParameters(int index) { return parameters_.get(index); } /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder - getParametersOrBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParametersOrBuilder( + int index) { return parameters_.get(index); } public static final int HELP_URL_FIELD_NUMBER = 13; private volatile java.lang.Object helpUrl_; /** - * - * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; - * * @return The helpUrl. */ @java.lang.Override @@ -1010,29 +878,29 @@ public java.lang.String getHelpUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); helpUrl_ = s; return s; } } /** - * - * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; - * * @return The bytes for helpUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getHelpUrlBytes() { + public com.google.protobuf.ByteString + getHelpUrlBytes() { java.lang.Object ref = helpUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); helpUrl_ = b; return b; } else { @@ -1043,52 +911,33 @@ public com.google.protobuf.ByteString getHelpUrlBytes() { public static final int AUTHORIZATION_TYPE_FIELD_NUMBER = 14; private int authorizationType_; /** - * - * *
    * Indicates the type of authorization.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @return The enum numeric value on the wire for authorizationType. */ - @java.lang.Override - public int getAuthorizationTypeValue() { + @java.lang.Override public int getAuthorizationTypeValue() { return authorizationType_; } /** - * - * *
    * Indicates the type of authorization.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @return The authorizationType. */ - @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType - getAuthorizationType() { + @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = - com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf( - authorizationType_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf(authorizationType_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED : result; } public static final int DATA_REFRESH_TYPE_FIELD_NUMBER = 15; private int dataRefreshType_; /** - * - * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -1096,18 +945,13 @@ public int getAuthorizationTypeValue() {
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @return The enum numeric value on the wire for dataRefreshType. */ - @java.lang.Override - public int getDataRefreshTypeValue() { + @java.lang.Override public int getDataRefreshTypeValue() { return dataRefreshType_; } /** - * - * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -1115,34 +959,24 @@ public int getDataRefreshTypeValue() {
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @return The dataRefreshType. */ - @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { + @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = - com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf( - dataRefreshType_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf(dataRefreshType_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED : result; } public static final int DEFAULT_DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER = 16; private int defaultDataRefreshWindowDays_; /** - * - * *
    * Default data refresh window on days.
    * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
    * 
* * int32 default_data_refresh_window_days = 16; - * * @return The defaultDataRefreshWindowDays. */ @java.lang.Override @@ -1153,15 +987,12 @@ public int getDefaultDataRefreshWindowDays() { public static final int MANUAL_RUNS_DISABLED_FIELD_NUMBER = 17; private boolean manualRunsDisabled_; /** - * - * *
    * Disables backfilling and manual run scheduling
    * for the data source.
    * 
* * bool manual_runs_disabled = 17; - * * @return The manualRunsDisabled. */ @java.lang.Override @@ -1172,14 +1003,11 @@ public boolean getManualRunsDisabled() { public static final int MINIMUM_SCHEDULE_INTERVAL_FIELD_NUMBER = 18; private com.google.protobuf.Duration minimumScheduleInterval_; /** - * - * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; - * * @return Whether the minimumScheduleInterval field is set. */ @java.lang.Override @@ -1187,25 +1015,18 @@ public boolean hasMinimumScheduleInterval() { return minimumScheduleInterval_ != null; } /** - * - * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; - * * @return The minimumScheduleInterval. */ @java.lang.Override public com.google.protobuf.Duration getMinimumScheduleInterval() { - return minimumScheduleInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minimumScheduleInterval_; + return minimumScheduleInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumScheduleInterval_; } /** - * - * *
    * The minimum interval for scheduler to schedule runs.
    * 
@@ -1218,7 +1039,6 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1230,7 +1050,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_); } @@ -1249,9 +1070,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < scopes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, scopes_.getRaw(i)); } - if (transferType_ - != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED - .getNumber()) { + if (transferType_ != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(7, transferType_); } if (supportsMultipleTransfers_ != false) { @@ -1272,16 +1091,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(helpUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, helpUrl_); } - if (authorizationType_ - != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType - .AUTHORIZATION_TYPE_UNSPECIFIED - .getNumber()) { + if (authorizationType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(14, authorizationType_); } - if (dataRefreshType_ - != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType - .DATA_REFRESH_TYPE_UNSPECIFIED - .getNumber()) { + if (dataRefreshType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.DATA_REFRESH_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(15, dataRefreshType_); } if (defaultDataRefreshWindowDays_ != 0) { @@ -1325,52 +1138,51 @@ public int getSerializedSize() { size += dataSize; size += 1 * getScopesList().size(); } - if (transferType_ - != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, transferType_); + if (transferType_ != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, transferType_); } if (supportsMultipleTransfers_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, supportsMultipleTransfers_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, supportsMultipleTransfers_); } if (updateDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, updateDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, updateDeadlineSeconds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, defaultSchedule_); } if (supportsCustomSchedule_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, supportsCustomSchedule_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, supportsCustomSchedule_); } for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, parameters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, parameters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(helpUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, helpUrl_); } - if (authorizationType_ - != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType - .AUTHORIZATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, authorizationType_); + if (authorizationType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, authorizationType_); } - if (dataRefreshType_ - != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType - .DATA_REFRESH_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, dataRefreshType_); + if (dataRefreshType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.DATA_REFRESH_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, dataRefreshType_); } if (defaultDataRefreshWindowDays_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(16, defaultDataRefreshWindowDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(16, defaultDataRefreshWindowDays_); } if (manualRunsDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, manualRunsDisabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(17, manualRunsDisabled_); } if (minimumScheduleInterval_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, getMinimumScheduleInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getMinimumScheduleInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1380,34 +1192,48 @@ 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.datatransfer.v1.DataSource)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DataSource other = - (com.google.cloud.bigquery.datatransfer.v1.DataSource) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDataSourceId().equals(other.getDataSourceId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getClientId().equals(other.getClientId())) return false; - if (!getScopesList().equals(other.getScopesList())) return false; + com.google.cloud.bigquery.datatransfer.v1.DataSource other = (com.google.cloud.bigquery.datatransfer.v1.DataSource) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDataSourceId() + .equals(other.getDataSourceId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getClientId() + .equals(other.getClientId())) return false; + if (!getScopesList() + .equals(other.getScopesList())) return false; if (transferType_ != other.transferType_) return false; - if (getSupportsMultipleTransfers() != other.getSupportsMultipleTransfers()) return false; - if (getUpdateDeadlineSeconds() != other.getUpdateDeadlineSeconds()) return false; - if (!getDefaultSchedule().equals(other.getDefaultSchedule())) return false; - if (getSupportsCustomSchedule() != other.getSupportsCustomSchedule()) return false; - if (!getParametersList().equals(other.getParametersList())) return false; - if (!getHelpUrl().equals(other.getHelpUrl())) return false; + if (getSupportsMultipleTransfers() + != other.getSupportsMultipleTransfers()) return false; + if (getUpdateDeadlineSeconds() + != other.getUpdateDeadlineSeconds()) return false; + if (!getDefaultSchedule() + .equals(other.getDefaultSchedule())) return false; + if (getSupportsCustomSchedule() + != other.getSupportsCustomSchedule()) return false; + if (!getParametersList() + .equals(other.getParametersList())) return false; + if (!getHelpUrl() + .equals(other.getHelpUrl())) return false; if (authorizationType_ != other.authorizationType_) return false; if (dataRefreshType_ != other.dataRefreshType_) return false; - if (getDefaultDataRefreshWindowDays() != other.getDefaultDataRefreshWindowDays()) return false; - if (getManualRunsDisabled() != other.getManualRunsDisabled()) return false; + if (getDefaultDataRefreshWindowDays() + != other.getDefaultDataRefreshWindowDays()) return false; + if (getManualRunsDisabled() + != other.getManualRunsDisabled()) return false; if (hasMinimumScheduleInterval() != other.hasMinimumScheduleInterval()) return false; if (hasMinimumScheduleInterval()) { - if (!getMinimumScheduleInterval().equals(other.getMinimumScheduleInterval())) return false; + if (!getMinimumScheduleInterval() + .equals(other.getMinimumScheduleInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1437,13 +1263,15 @@ public int hashCode() { hash = (37 * hash) + TRANSFER_TYPE_FIELD_NUMBER; hash = (53 * hash) + transferType_; hash = (37 * hash) + SUPPORTS_MULTIPLE_TRANSFERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsMultipleTransfers()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportsMultipleTransfers()); hash = (37 * hash) + UPDATE_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getUpdateDeadlineSeconds(); hash = (37 * hash) + DEFAULT_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getDefaultSchedule().hashCode(); hash = (37 * hash) + SUPPORTS_CUSTOM_SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsCustomSchedule()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportsCustomSchedule()); if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); @@ -1457,7 +1285,8 @@ public int hashCode() { hash = (37 * hash) + DEFAULT_DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER; hash = (53 * hash) + getDefaultDataRefreshWindowDays(); hash = (37 * hash) + MANUAL_RUNS_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManualRunsDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getManualRunsDisabled()); if (hasMinimumScheduleInterval()) { hash = (37 * hash) + MINIMUM_SCHEDULE_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getMinimumScheduleInterval().hashCode(); @@ -1468,135 +1297,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DataSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DataSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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; } /** - * - * *
    * Defines the properties and custom parameters for a data source.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSource} */ - 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.datatransfer.v1.DataSource) com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSource.class, - com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSource.class, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.DataSource.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(); @@ -1649,9 +1472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } @java.lang.Override @@ -1670,8 +1493,7 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.DataSource result = - new com.google.cloud.bigquery.datatransfer.v1.DataSource(this); + com.google.cloud.bigquery.datatransfer.v1.DataSource result = new com.google.cloud.bigquery.datatransfer.v1.DataSource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.dataSourceId_ = dataSourceId_; @@ -1715,39 +1537,38 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.DataSource) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSource) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSource)other); } else { super.mergeFrom(other); return this; @@ -1755,8 +1576,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSource other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1821,10 +1641,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSource ot parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000002); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParametersFieldBuilder() - : null; + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParametersFieldBuilder() : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } @@ -1875,131 +1694,113 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - dataSourceId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - clientId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureScopesIsMutable(); - scopes_.add(s); - break; - } // case 50 - case 56: - { - transferType_ = input.readEnum(); - - break; - } // case 56 - case 64: - { - supportsMultipleTransfers_ = input.readBool(); - - break; - } // case 64 - case 72: - { - updateDeadlineSeconds_ = input.readInt32(); - - break; - } // case 72 - case 82: - { - defaultSchedule_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 88: - { - supportsCustomSchedule_ = input.readBool(); - - break; - } // case 88 - case 98: - { - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), - extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: - { - helpUrl_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: - { - authorizationType_ = input.readEnum(); - - break; - } // case 112 - case 120: - { - dataRefreshType_ = input.readEnum(); - - break; - } // case 120 - case 128: - { - defaultDataRefreshWindowDays_ = input.readInt32(); - - break; - } // case 128 - case 136: - { - manualRunsDisabled_ = input.readBool(); - - break; - } // case 136 - case 146: - { - input.readMessage( - getMinimumScheduleIntervalFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 146 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + dataSourceId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + clientId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 50 + case 56: { + transferType_ = input.readEnum(); + + break; + } // case 56 + case 64: { + supportsMultipleTransfers_ = input.readBool(); + + break; + } // case 64 + case 72: { + updateDeadlineSeconds_ = input.readInt32(); + + break; + } // case 72 + case 82: { + defaultSchedule_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 88: { + supportsCustomSchedule_ = input.readBool(); + + break; + } // case 88 + case 98: { + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), + extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: { + helpUrl_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: { + authorizationType_ = input.readEnum(); + + break; + } // case 112 + case 120: { + dataRefreshType_ = input.readEnum(); + + break; + } // case 120 + case 128: { + defaultDataRefreshWindowDays_ = input.readInt32(); + + break; + } // case 128 + case 136: { + manualRunsDisabled_ = input.readBool(); + + break; + } // case 136 + case 146: { + input.readMessage( + getMinimumScheduleIntervalFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 146 + 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) { @@ -2009,25 +1810,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2036,21 +1834,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2058,61 +1855,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2120,20 +1910,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataSourceId_ = ""; /** - * - * *
      * Data source id.
      * 
* * string data_source_id = 2; - * * @return The dataSourceId. */ public java.lang.String getDataSourceId() { java.lang.Object ref = dataSourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; @@ -2142,21 +1930,20 @@ public java.lang.String getDataSourceId() { } } /** - * - * *
      * Data source id.
      * 
* * string data_source_id = 2; - * * @return The bytes for dataSourceId. */ - public com.google.protobuf.ByteString getDataSourceIdBytes() { + public com.google.protobuf.ByteString + getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -2164,61 +1951,54 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() { } } /** - * - * *
      * Data source id.
      * 
* * string data_source_id = 2; - * * @param value The dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceId(java.lang.String value) { + public Builder setDataSourceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataSourceId_ = value; onChanged(); return this; } /** - * - * *
      * Data source id.
      * 
* * string data_source_id = 2; - * * @return This builder for chaining. */ public Builder clearDataSourceId() { - + dataSourceId_ = getDefaultInstance().getDataSourceId(); onChanged(); return this; } /** - * - * *
      * Data source id.
      * 
* * string data_source_id = 2; - * * @param value The bytes for dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { + public Builder setDataSourceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceId_ = value; onChanged(); return this; @@ -2226,20 +2006,18 @@ public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User friendly data source name.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2248,21 +2026,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User friendly data source name.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2270,61 +2047,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User friendly data source name.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * User friendly data source name.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * User friendly data source name.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2332,20 +2102,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User friendly data source description string.
      * 
* * string description = 4; - * * @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; @@ -2354,21 +2122,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User friendly data source description string.
      * 
* * string description = 4; - * * @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 { @@ -2376,61 +2143,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User friendly data source description string.
      * 
* * string description = 4; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User friendly data source description string.
      * 
* * string description = 4; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User friendly data source description string.
      * 
* * string description = 4; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2438,20 +2198,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object clientId_ = ""; /** - * - * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; - * * @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; @@ -2460,21 +2218,20 @@ public java.lang.String getClientId() { } } /** - * - * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; - * * @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 { @@ -2482,78 +2239,67 @@ public com.google.protobuf.ByteString getClientIdBytes() { } } /** - * - * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; - * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId(java.lang.String value) { + public Builder setClientId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientId_ = value; onChanged(); return this; } /** - * - * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; - * * @return This builder for chaining. */ public Builder clearClientId() { - + clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** - * - * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; - * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList scopes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureScopesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2561,15 +2307,13 @@ private void ensureScopesIsMutable() {
      * 
* * repeated string scopes = 6; - * * @return A list containing the scopes. */ - public com.google.protobuf.ProtocolStringList getScopesList() { + public com.google.protobuf.ProtocolStringList + getScopesList() { return scopes_.getUnmodifiableView(); } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2577,15 +2321,12 @@ public com.google.protobuf.ProtocolStringList getScopesList() {
      * 
* * repeated string scopes = 6; - * * @return The count of scopes. */ public int getScopesCount() { return scopes_.size(); } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2593,7 +2334,6 @@ public int getScopesCount() {
      * 
* * repeated string scopes = 6; - * * @param index The index of the element to return. * @return The scopes at the given index. */ @@ -2601,8 +2341,6 @@ public java.lang.String getScopes(int index) { return scopes_.get(index); } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2610,16 +2348,14 @@ public java.lang.String getScopes(int index) {
      * 
* * repeated string scopes = 6; - * * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ - public com.google.protobuf.ByteString getScopesBytes(int index) { + public com.google.protobuf.ByteString + getScopesBytes(int index) { return scopes_.getByteString(index); } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2627,23 +2363,21 @@ public com.google.protobuf.ByteString getScopesBytes(int index) {
      * 
* * repeated string scopes = 6; - * * @param index The index to set the value at. * @param value The scopes to set. * @return This builder for chaining. */ - public Builder setScopes(int index, java.lang.String value) { + public Builder setScopes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopesIsMutable(); + throw new NullPointerException(); + } + ensureScopesIsMutable(); scopes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2651,22 +2385,20 @@ public Builder setScopes(int index, java.lang.String value) {
      * 
* * repeated string scopes = 6; - * * @param value The scopes to add. * @return This builder for chaining. */ - public Builder addScopes(java.lang.String value) { + public Builder addScopes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopesIsMutable(); + throw new NullPointerException(); + } + ensureScopesIsMutable(); scopes_.add(value); onChanged(); return this; } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2674,19 +2406,18 @@ public Builder addScopes(java.lang.String value) {
      * 
* * repeated string scopes = 6; - * * @param values The scopes to add. * @return This builder for chaining. */ - public Builder addAllScopes(java.lang.Iterable values) { + public Builder addAllScopes( + java.lang.Iterable values) { ensureScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); onChanged(); return this; } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2694,7 +2425,6 @@ public Builder addAllScopes(java.lang.Iterable values) {
      * 
* * repeated string scopes = 6; - * * @return This builder for chaining. */ public Builder clearScopes() { @@ -2704,8 +2434,6 @@ public Builder clearScopes() { return this; } /** - * - * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2713,15 +2441,15 @@ public Builder clearScopes() {
      * 
* * repeated string scopes = 6; - * * @param value The bytes of the scopes to add. * @return This builder for chaining. */ - public Builder addScopesBytes(com.google.protobuf.ByteString value) { + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureScopesIsMutable(); scopes_.add(value); onChanged(); @@ -2730,194 +2458,145 @@ public Builder addScopesBytes(com.google.protobuf.ByteString value) { private int transferType_ = 0; /** - * - * *
      * Deprecated. This field has no effect.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The enum numeric value on the wire for transferType. */ - @java.lang.Override - @java.lang.Deprecated - public int getTransferTypeValue() { + @java.lang.Override @java.lang.Deprecated public int getTransferTypeValue() { return transferType_; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @param value The enum numeric value on the wire for transferType to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setTransferTypeValue(int value) { - + @java.lang.Deprecated public Builder setTransferTypeValue(int value) { + transferType_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The transferType. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { + @java.lang.Deprecated public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferType result = - com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferType result = com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED : result; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @param value The transferType to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setTransferType(com.google.cloud.bigquery.datatransfer.v1.TransferType value) { + @java.lang.Deprecated public Builder setTransferType(com.google.cloud.bigquery.datatransfer.v1.TransferType value) { if (value == null) { throw new NullPointerException(); } - + transferType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearTransferType() { - + @java.lang.Deprecated public Builder clearTransferType() { + transferType_ = 0; onChanged(); return this; } - private boolean supportsMultipleTransfers_; + private boolean supportsMultipleTransfers_ ; /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=378 + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return The supportsMultipleTransfers. */ @java.lang.Override - @java.lang.Deprecated - public boolean getSupportsMultipleTransfers() { + @java.lang.Deprecated public boolean getSupportsMultipleTransfers() { return supportsMultipleTransfers_; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=378 + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @param value The supportsMultipleTransfers to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setSupportsMultipleTransfers(boolean value) { - + @java.lang.Deprecated public Builder setSupportsMultipleTransfers(boolean value) { + supportsMultipleTransfers_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=378 + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSupportsMultipleTransfers() { - + @java.lang.Deprecated public Builder clearSupportsMultipleTransfers() { + supportsMultipleTransfers_ = false; onChanged(); return this; } - private int updateDeadlineSeconds_; + private int updateDeadlineSeconds_ ; /** - * - * *
      * The number of seconds to wait for an update from the data source
      * before the Data Transfer Service marks the transfer as FAILED.
      * 
* * int32 update_deadline_seconds = 9; - * * @return The updateDeadlineSeconds. */ @java.lang.Override @@ -2925,38 +2604,32 @@ public int getUpdateDeadlineSeconds() { return updateDeadlineSeconds_; } /** - * - * *
      * The number of seconds to wait for an update from the data source
      * before the Data Transfer Service marks the transfer as FAILED.
      * 
* * int32 update_deadline_seconds = 9; - * * @param value The updateDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setUpdateDeadlineSeconds(int value) { - + updateDeadlineSeconds_ = value; onChanged(); return this; } /** - * - * *
      * The number of seconds to wait for an update from the data source
      * before the Data Transfer Service marks the transfer as FAILED.
      * 
* * int32 update_deadline_seconds = 9; - * * @return This builder for chaining. */ public Builder clearUpdateDeadlineSeconds() { - + updateDeadlineSeconds_ = 0; onChanged(); return this; @@ -2964,8 +2637,6 @@ public Builder clearUpdateDeadlineSeconds() { private java.lang.Object defaultSchedule_ = ""; /** - * - * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -2975,13 +2646,13 @@ public Builder clearUpdateDeadlineSeconds() {
      * 
* * string default_schedule = 10; - * * @return The defaultSchedule. */ public java.lang.String getDefaultSchedule() { java.lang.Object ref = defaultSchedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultSchedule_ = s; return s; @@ -2990,8 +2661,6 @@ public java.lang.String getDefaultSchedule() { } } /** - * - * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -3001,14 +2670,15 @@ public java.lang.String getDefaultSchedule() {
      * 
* * string default_schedule = 10; - * * @return The bytes for defaultSchedule. */ - public com.google.protobuf.ByteString getDefaultScheduleBytes() { + public com.google.protobuf.ByteString + getDefaultScheduleBytes() { java.lang.Object ref = defaultSchedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultSchedule_ = b; return b; } else { @@ -3016,8 +2686,6 @@ public com.google.protobuf.ByteString getDefaultScheduleBytes() { } } /** - * - * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -3027,22 +2695,20 @@ public com.google.protobuf.ByteString getDefaultScheduleBytes() {
      * 
* * string default_schedule = 10; - * * @param value The defaultSchedule to set. * @return This builder for chaining. */ - public Builder setDefaultSchedule(java.lang.String value) { + public Builder setDefaultSchedule( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + defaultSchedule_ = value; onChanged(); return this; } /** - * - * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -3052,18 +2718,15 @@ public Builder setDefaultSchedule(java.lang.String value) {
      * 
* * string default_schedule = 10; - * * @return This builder for chaining. */ public Builder clearDefaultSchedule() { - + defaultSchedule_ = getDefaultInstance().getDefaultSchedule(); onChanged(); return this; } /** - * - * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -3073,25 +2736,23 @@ public Builder clearDefaultSchedule() {
      * 
* * string default_schedule = 10; - * * @param value The bytes for defaultSchedule to set. * @return This builder for chaining. */ - public Builder setDefaultScheduleBytes(com.google.protobuf.ByteString value) { + public Builder setDefaultScheduleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultSchedule_ = value; onChanged(); return this; } - private boolean supportsCustomSchedule_; + private boolean supportsCustomSchedule_ ; /** - * - * *
      * Specifies whether the data source supports a user defined schedule, or
      * operates on the default schedule.
@@ -3099,7 +2760,6 @@ public Builder setDefaultScheduleBytes(com.google.protobuf.ByteString value) {
      * 
* * bool supports_custom_schedule = 11; - * * @return The supportsCustomSchedule. */ @java.lang.Override @@ -3107,8 +2767,6 @@ public boolean getSupportsCustomSchedule() { return supportsCustomSchedule_; } /** - * - * *
      * Specifies whether the data source supports a user defined schedule, or
      * operates on the default schedule.
@@ -3116,19 +2774,16 @@ public boolean getSupportsCustomSchedule() {
      * 
* * bool supports_custom_schedule = 11; - * * @param value The supportsCustomSchedule to set. * @return This builder for chaining. */ public Builder setSupportsCustomSchedule(boolean value) { - + supportsCustomSchedule_ = value; onChanged(); return this; } /** - * - * *
      * Specifies whether the data source supports a user defined schedule, or
      * operates on the default schedule.
@@ -3136,46 +2791,35 @@ public Builder setSupportsCustomSchedule(boolean value) {
      * 
* * bool supports_custom_schedule = 11; - * * @return This builder for chaining. */ public Builder clearSupportsCustomSchedule() { - + supportsCustomSchedule_ = false; onChanged(); return this; } - private java.util.List - parameters_ = java.util.Collections.emptyList(); - + private java.util.List parameters_ = + java.util.Collections.emptyList(); private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - parameters_ = - new java.util.ArrayList( - parameters_); + parameters_ = new java.util.ArrayList(parameters_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> - parametersBuilder_; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> parametersBuilder_; /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public java.util.List - getParametersList() { + public java.util.List getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { @@ -3183,14 +2827,11 @@ private void ensureParametersIsMutable() { } } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public int getParametersCount() { if (parametersBuilder_ == null) { @@ -3200,14 +2841,11 @@ public int getParametersCount() { } } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParameters(int index) { if (parametersBuilder_ == null) { @@ -3217,14 +2855,11 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParamete } } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder setParameters( int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { @@ -3241,18 +2876,14 @@ public Builder setParameters( return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder setParameters( - int index, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); @@ -3263,17 +2894,13 @@ public Builder setParameters( return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public Builder addParameters( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { + public Builder addParameters(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3287,14 +2914,11 @@ public Builder addParameters( return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder addParameters( int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { @@ -3311,14 +2935,11 @@ public Builder addParameters( return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder addParameters( com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { @@ -3332,18 +2953,14 @@ public Builder addParameters( return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder addParameters( - int index, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); @@ -3354,21 +2971,18 @@ public Builder addParameters( return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder addAllParameters( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); @@ -3376,14 +2990,11 @@ public Builder addAllParameters( return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder clearParameters() { if (parametersBuilder_ == null) { @@ -3396,14 +3007,11 @@ public Builder clearParameters() { return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { @@ -3416,50 +3024,39 @@ public Builder removeParameters(int index) { return this; } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder - getParametersBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder getParametersBuilder( + int index) { return getParametersFieldBuilder().getBuilder(index); } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder - getParametersOrBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParametersOrBuilder( + int index) { if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { + return parameters_.get(index); } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public java.util.List< - ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> - getParametersOrBuilderList() { + public java.util.List + getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { @@ -3467,65 +3064,49 @@ public Builder removeParameters(int index) { } } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder - addParametersBuilder() { - return getParametersFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addParametersBuilder() { + return getParametersFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder - addParametersBuilder(int index) { - return getParametersFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addParametersBuilder( + int index) { + return getParametersFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** - * - * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - public java.util.List - getParametersBuilderList() { + public java.util.List + getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( + parameters_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); parameters_ = null; } return parametersBuilder_; @@ -3533,20 +3114,18 @@ public Builder removeParameters(int index) { private java.lang.Object helpUrl_ = ""; /** - * - * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; - * * @return The helpUrl. */ public java.lang.String getHelpUrl() { java.lang.Object ref = helpUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); helpUrl_ = s; return s; @@ -3555,21 +3134,20 @@ public java.lang.String getHelpUrl() { } } /** - * - * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; - * * @return The bytes for helpUrl. */ - public com.google.protobuf.ByteString getHelpUrlBytes() { + public com.google.protobuf.ByteString + getHelpUrlBytes() { java.lang.Object ref = helpUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); helpUrl_ = b; return b; } else { @@ -3577,61 +3155,54 @@ public com.google.protobuf.ByteString getHelpUrlBytes() { } } /** - * - * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; - * * @param value The helpUrl to set. * @return This builder for chaining. */ - public Builder setHelpUrl(java.lang.String value) { + public Builder setHelpUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + helpUrl_ = value; onChanged(); return this; } /** - * - * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; - * * @return This builder for chaining. */ public Builder clearHelpUrl() { - + helpUrl_ = getDefaultInstance().getHelpUrl(); onChanged(); return this; } /** - * - * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; - * * @param value The bytes for helpUrl to set. * @return This builder for chaining. */ - public Builder setHelpUrlBytes(com.google.protobuf.ByteString value) { + public Builder setHelpUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + helpUrl_ = value; onChanged(); return this; @@ -3639,105 +3210,73 @@ public Builder setHelpUrlBytes(com.google.protobuf.ByteString value) { private int authorizationType_ = 0; /** - * - * *
      * Indicates the type of authorization.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @return The enum numeric value on the wire for authorizationType. */ - @java.lang.Override - public int getAuthorizationTypeValue() { + @java.lang.Override public int getAuthorizationTypeValue() { return authorizationType_; } /** - * - * *
      * Indicates the type of authorization.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @param value The enum numeric value on the wire for authorizationType to set. * @return This builder for chaining. */ public Builder setAuthorizationTypeValue(int value) { - + authorizationType_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the type of authorization.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @return The authorizationType. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType - getAuthorizationType() { + public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = - com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf( - authorizationType_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf(authorizationType_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the type of authorization.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @param value The authorizationType to set. * @return This builder for chaining. */ - public Builder setAuthorizationType( - com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType value) { + public Builder setAuthorizationType(com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType value) { if (value == null) { throw new NullPointerException(); } - + authorizationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the type of authorization.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @return This builder for chaining. */ public Builder clearAuthorizationType() { - + authorizationType_ = 0; onChanged(); return this; @@ -3745,8 +3284,6 @@ public Builder clearAuthorizationType() { private int dataRefreshType_ = 0; /** - * - * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3754,19 +3291,13 @@ public Builder clearAuthorizationType() {
      * so it's useful to refresh data automatically.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @return The enum numeric value on the wire for dataRefreshType. */ - @java.lang.Override - public int getDataRefreshTypeValue() { + @java.lang.Override public int getDataRefreshTypeValue() { return dataRefreshType_; } /** - * - * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3774,22 +3305,17 @@ public int getDataRefreshTypeValue() {
      * so it's useful to refresh data automatically.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @param value The enum numeric value on the wire for dataRefreshType to set. * @return This builder for chaining. */ public Builder setDataRefreshTypeValue(int value) { - + dataRefreshType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3797,26 +3323,16 @@ public Builder setDataRefreshTypeValue(int value) {
      * so it's useful to refresh data automatically.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @return The dataRefreshType. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType - getDataRefreshType() { + public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = - com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf( - dataRefreshType_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf(dataRefreshType_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED : result; } /** - * - * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3824,26 +3340,20 @@ public Builder setDataRefreshTypeValue(int value) {
      * so it's useful to refresh data automatically.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @param value The dataRefreshType to set. * @return This builder for chaining. */ - public Builder setDataRefreshType( - com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType value) { + public Builder setDataRefreshType(com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType value) { if (value == null) { throw new NullPointerException(); } - + dataRefreshType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3851,30 +3361,24 @@ public Builder setDataRefreshType(
      * so it's useful to refresh data automatically.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @return This builder for chaining. */ public Builder clearDataRefreshType() { - + dataRefreshType_ = 0; onChanged(); return this; } - private int defaultDataRefreshWindowDays_; + private int defaultDataRefreshWindowDays_ ; /** - * - * *
      * Default data refresh window on days.
      * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
      * 
* * int32 default_data_refresh_window_days = 16; - * * @return The defaultDataRefreshWindowDays. */ @java.lang.Override @@ -3882,54 +3386,45 @@ public int getDefaultDataRefreshWindowDays() { return defaultDataRefreshWindowDays_; } /** - * - * *
      * Default data refresh window on days.
      * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
      * 
* * int32 default_data_refresh_window_days = 16; - * * @param value The defaultDataRefreshWindowDays to set. * @return This builder for chaining. */ public Builder setDefaultDataRefreshWindowDays(int value) { - + defaultDataRefreshWindowDays_ = value; onChanged(); return this; } /** - * - * *
      * Default data refresh window on days.
      * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
      * 
* * int32 default_data_refresh_window_days = 16; - * * @return This builder for chaining. */ public Builder clearDefaultDataRefreshWindowDays() { - + defaultDataRefreshWindowDays_ = 0; onChanged(); return this; } - private boolean manualRunsDisabled_; + private boolean manualRunsDisabled_ ; /** - * - * *
      * Disables backfilling and manual run scheduling
      * for the data source.
      * 
* * bool manual_runs_disabled = 17; - * * @return The manualRunsDisabled. */ @java.lang.Override @@ -3937,38 +3432,32 @@ public boolean getManualRunsDisabled() { return manualRunsDisabled_; } /** - * - * *
      * Disables backfilling and manual run scheduling
      * for the data source.
      * 
* * bool manual_runs_disabled = 17; - * * @param value The manualRunsDisabled to set. * @return This builder for chaining. */ public Builder setManualRunsDisabled(boolean value) { - + manualRunsDisabled_ = value; onChanged(); return this; } /** - * - * *
      * Disables backfilling and manual run scheduling
      * for the data source.
      * 
* * bool manual_runs_disabled = 17; - * * @return This builder for chaining. */ public Builder clearManualRunsDisabled() { - + manualRunsDisabled_ = false; onChanged(); return this; @@ -3976,47 +3465,34 @@ public Builder clearManualRunsDisabled() { private com.google.protobuf.Duration minimumScheduleInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minimumScheduleIntervalBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minimumScheduleIntervalBuilder_; /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; - * * @return Whether the minimumScheduleInterval field is set. */ public boolean hasMinimumScheduleInterval() { return minimumScheduleIntervalBuilder_ != null || minimumScheduleInterval_ != null; } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; - * * @return The minimumScheduleInterval. */ public com.google.protobuf.Duration getMinimumScheduleInterval() { if (minimumScheduleIntervalBuilder_ == null) { - return minimumScheduleInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minimumScheduleInterval_; + return minimumScheduleInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumScheduleInterval_; } else { return minimumScheduleIntervalBuilder_.getMessage(); } } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -4037,8 +3513,6 @@ public Builder setMinimumScheduleInterval(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -4057,8 +3531,6 @@ public Builder setMinimumScheduleInterval( return this; } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -4069,9 +3541,7 @@ public Builder mergeMinimumScheduleInterval(com.google.protobuf.Duration value) if (minimumScheduleIntervalBuilder_ == null) { if (minimumScheduleInterval_ != null) { minimumScheduleInterval_ = - com.google.protobuf.Duration.newBuilder(minimumScheduleInterval_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(minimumScheduleInterval_).mergeFrom(value).buildPartial(); } else { minimumScheduleInterval_ = value; } @@ -4083,8 +3553,6 @@ public Builder mergeMinimumScheduleInterval(com.google.protobuf.Duration value) return this; } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -4103,8 +3571,6 @@ public Builder clearMinimumScheduleInterval() { return this; } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -4112,13 +3578,11 @@ public Builder clearMinimumScheduleInterval() { * .google.protobuf.Duration minimum_schedule_interval = 18; */ public com.google.protobuf.Duration.Builder getMinimumScheduleIntervalBuilder() { - + onChanged(); return getMinimumScheduleIntervalFieldBuilder().getBuilder(); } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -4129,14 +3593,11 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder if (minimumScheduleIntervalBuilder_ != null) { return minimumScheduleIntervalBuilder_.getMessageOrBuilder(); } else { - return minimumScheduleInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minimumScheduleInterval_; + return minimumScheduleInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minimumScheduleInterval_; } } /** - * - * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -4144,24 +3605,21 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder * .google.protobuf.Duration minimum_schedule_interval = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinimumScheduleIntervalFieldBuilder() { if (minimumScheduleIntervalBuilder_ == null) { - minimumScheduleIntervalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinimumScheduleInterval(), getParentForChildren(), isClean()); + minimumScheduleIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinimumScheduleInterval(), + getParentForChildren(), + isClean()); minimumScheduleInterval_ = null; } return minimumScheduleIntervalBuilder_; } - @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); } @@ -4171,12 +3629,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DataSource) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSource) private static final com.google.cloud.bigquery.datatransfer.v1.DataSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DataSource(); } @@ -4185,27 +3643,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSource getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSource 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 DataSource 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; @@ -4220,4 +3678,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.DataSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java new file mode 100644 index 000000000000..8d1ede348a91 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java @@ -0,0 +1,313 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datatransfer.v1; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataSourceName implements ResourceName { + private static final PathTemplate PROJECT_DATA_SOURCE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/dataSources/{data_source}"); + private static final PathTemplate PROJECT_LOCATION_DATA_SOURCE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataSources/{data_source}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String dataSource; + private final String location; + + @Deprecated + protected DataSourceName() { + project = null; + dataSource = null; + location = null; + } + + private DataSourceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + dataSource = Preconditions.checkNotNull(builder.getDataSource()); + location = null; + pathTemplate = PROJECT_DATA_SOURCE; + } + + private DataSourceName(ProjectLocationDataSourceBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataSource = Preconditions.checkNotNull(builder.getDataSource()); + pathTemplate = PROJECT_LOCATION_DATA_SOURCE; + } + + public String getProject() { + return project; + } + + public String getDataSource() { + return dataSource; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectDataSourceBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationDataSourceBuilder newProjectLocationDataSourceBuilder() { + return new ProjectLocationDataSourceBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataSourceName of(String project, String dataSource) { + return newBuilder().setProject(project).setDataSource(dataSource).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static DataSourceName ofProjectDataSourceName(String project, String dataSource) { + return newBuilder().setProject(project).setDataSource(dataSource).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static DataSourceName ofProjectLocationDataSourceName( + String project, String location, String dataSource) { + return newProjectLocationDataSourceBuilder() + .setProject(project) + .setLocation(location) + .setDataSource(dataSource) + .build(); + } + + public static String format(String project, String dataSource) { + return newBuilder().setProject(project).setDataSource(dataSource).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectDataSourceName(String project, String dataSource) { + return newBuilder().setProject(project).setDataSource(dataSource).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataSourceName( + String project, String location, String dataSource) { + return newProjectLocationDataSourceBuilder() + .setProject(project) + .setLocation(location) + .setDataSource(dataSource) + .build() + .toString(); + } + + public static DataSourceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_DATA_SOURCE.matches(formattedString)) { + Map matchMap = PROJECT_DATA_SOURCE.match(formattedString); + return ofProjectDataSourceName(matchMap.get("project"), matchMap.get("data_source")); + } else if (PROJECT_LOCATION_DATA_SOURCE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_DATA_SOURCE.match(formattedString); + return ofProjectLocationDataSourceName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("data_source")); + } + throw new ValidationException("DataSourceName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataSourceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_DATA_SOURCE.matches(formattedString) + || PROJECT_LOCATION_DATA_SOURCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (dataSource != null) { + fieldMapBuilder.put("data_source", dataSource); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + DataSourceName that = ((DataSourceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.dataSource, that.dataSource) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(dataSource); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/dataSources/{data_source}. */ + public static class Builder { + private String project; + private String dataSource; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getDataSource() { + return dataSource; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setDataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + private Builder(DataSourceName dataSourceName) { + Preconditions.checkArgument( + Objects.equals(dataSourceName.pathTemplate, PROJECT_DATA_SOURCE), + "toBuilder is only supported when DataSourceName has the pattern of projects/{project}/dataSources/{data_source}"); + this.project = dataSourceName.project; + this.dataSource = dataSourceName.dataSource; + } + + public DataSourceName build() { + return new DataSourceName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/dataSources/{data_source}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationDataSourceBuilder { + private String project; + private String location; + private String dataSource; + + protected ProjectLocationDataSourceBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataSource() { + return dataSource; + } + + public ProjectLocationDataSourceBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationDataSourceBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationDataSourceBuilder setDataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + public DataSourceName build() { + return new DataSourceName(this); + } + } +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java similarity index 76% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java index 04f4b72ef578..15eb9124d926 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java @@ -1,156 +1,113 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface DataSourceOrBuilder - extends +public interface DataSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DataSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Data source id.
    * 
* * string data_source_id = 2; - * * @return The dataSourceId. */ java.lang.String getDataSourceId(); /** - * - * *
    * Data source id.
    * 
* * string data_source_id = 2; - * * @return The bytes for dataSourceId. */ - com.google.protobuf.ByteString getDataSourceIdBytes(); + com.google.protobuf.ByteString + getDataSourceIdBytes(); /** - * - * *
    * User friendly data source name.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User friendly data source name.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * User friendly data source description string.
    * 
* * string description = 4; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User friendly data source description string.
    * 
* * string description = 4; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; - * * @return The clientId. */ java.lang.String getClientId(); /** - * - * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; - * * @return The bytes for clientId. */ - com.google.protobuf.ByteString getClientIdBytes(); + com.google.protobuf.ByteString + getClientIdBytes(); /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -158,13 +115,11 @@ public interface DataSourceOrBuilder
    * 
* * repeated string scopes = 6; - * * @return A list containing the scopes. */ - java.util.List getScopesList(); + java.util.List + getScopesList(); /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -172,13 +127,10 @@ public interface DataSourceOrBuilder
    * 
* * repeated string scopes = 6; - * * @return The count of scopes. */ int getScopesCount(); /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -186,14 +138,11 @@ public interface DataSourceOrBuilder
    * 
* * repeated string scopes = 6; - * * @param index The index of the element to return. * @return The scopes at the given index. */ java.lang.String getScopes(int index); /** - * - * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -201,80 +150,59 @@ public interface DataSourceOrBuilder
    * 
* * repeated string scopes = 6; - * * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ - com.google.protobuf.ByteString getScopesBytes(int index); + com.google.protobuf.ByteString + getScopesBytes(int index); /** - * - * *
    * Deprecated. This field has no effect.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The enum numeric value on the wire for transferType. */ - @java.lang.Deprecated - int getTransferTypeValue(); + @java.lang.Deprecated int getTransferTypeValue(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=375 + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The transferType. */ - @java.lang.Deprecated - com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType(); + @java.lang.Deprecated com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=378 + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. + * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return The supportsMultipleTransfers. */ - @java.lang.Deprecated - boolean getSupportsMultipleTransfers(); + @java.lang.Deprecated boolean getSupportsMultipleTransfers(); /** - * - * *
    * The number of seconds to wait for an update from the data source
    * before the Data Transfer Service marks the transfer as FAILED.
    * 
* * int32 update_deadline_seconds = 9; - * * @return The updateDeadlineSeconds. */ int getUpdateDeadlineSeconds(); /** - * - * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -284,13 +212,10 @@ public interface DataSourceOrBuilder
    * 
* * string default_schedule = 10; - * * @return The defaultSchedule. */ java.lang.String getDefaultSchedule(); /** - * - * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -300,14 +225,12 @@ public interface DataSourceOrBuilder
    * 
* * string default_schedule = 10; - * * @return The bytes for defaultSchedule. */ - com.google.protobuf.ByteString getDefaultScheduleBytes(); + com.google.protobuf.ByteString + getDefaultScheduleBytes(); /** - * - * *
    * Specifies whether the data source supports a user defined schedule, or
    * operates on the default schedule.
@@ -315,126 +238,94 @@ public interface DataSourceOrBuilder
    * 
* * bool supports_custom_schedule = 11; - * * @return The supportsCustomSchedule. */ boolean getSupportsCustomSchedule(); /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - java.util.List getParametersList(); + java.util.List + getParametersList(); /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParameters(int index); /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ int getParametersCount(); /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ - java.util.List + java.util.List getParametersOrBuilderList(); /** - * - * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; - * + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParametersOrBuilder( int index); /** - * - * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; - * * @return The helpUrl. */ java.lang.String getHelpUrl(); /** - * - * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; - * * @return The bytes for helpUrl. */ - com.google.protobuf.ByteString getHelpUrlBytes(); + com.google.protobuf.ByteString + getHelpUrlBytes(); /** - * - * *
    * Indicates the type of authorization.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @return The enum numeric value on the wire for authorizationType. */ int getAuthorizationTypeValue(); /** - * - * *
    * Indicates the type of authorization.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; * @return The authorizationType. */ com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType(); /** - * - * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -442,15 +333,11 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParame
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @return The enum numeric value on the wire for dataRefreshType. */ int getDataRefreshTypeValue(); /** - * - * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -458,68 +345,52 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParame
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; - * - * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; * @return The dataRefreshType. */ com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType(); /** - * - * *
    * Default data refresh window on days.
    * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
    * 
* * int32 default_data_refresh_window_days = 16; - * * @return The defaultDataRefreshWindowDays. */ int getDefaultDataRefreshWindowDays(); /** - * - * *
    * Disables backfilling and manual run scheduling
    * for the data source.
    * 
* * bool manual_runs_disabled = 17; - * * @return The manualRunsDisabled. */ boolean getManualRunsDisabled(); /** - * - * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; - * * @return Whether the minimumScheduleInterval field is set. */ boolean hasMinimumScheduleInterval(); /** - * - * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; - * * @return The minimumScheduleInterval. */ com.google.protobuf.Duration getMinimumScheduleInterval(); /** - * - * *
    * The minimum interval for scheduler to schedule runs.
    * 
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java similarity index 74% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java index c2e93408be46..621ce6af170f 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A parameter used to define custom fields in a data source definition.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSourceParameter} */ -public final class DataSourceParameter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataSourceParameter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) DataSourceParameterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataSourceParameter.newBuilder() to construct. private DataSourceParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataSourceParameter() { paramId_ = ""; displayName_ = ""; @@ -51,43 +33,39 @@ private DataSourceParameter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataSourceParameter(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); } /** - * - * *
    * Parameter type.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Type unspecified.
      * 
@@ -96,8 +74,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * String parameter.
      * 
@@ -106,8 +82,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ STRING(1), /** - * - * *
      * Integer parameter (64-bits).
      * Will be serialized to json as string.
@@ -117,8 +91,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTEGER(2),
     /**
-     *
-     *
      * 
      * Double precision floating point parameter.
      * 
@@ -127,8 +99,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ DOUBLE(3), /** - * - * *
      * Boolean parameter.
      * 
@@ -137,8 +107,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ BOOLEAN(4), /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -147,8 +115,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RECORD(5), /** - * - * *
      * Page ID for a Google+ Page.
      * 
@@ -160,8 +126,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Type unspecified.
      * 
@@ -170,8 +134,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * String parameter.
      * 
@@ -180,8 +142,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRING_VALUE = 1; /** - * - * *
      * Integer parameter (64-bits).
      * Will be serialized to json as string.
@@ -191,8 +151,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTEGER_VALUE = 2;
     /**
-     *
-     *
      * 
      * Double precision floating point parameter.
      * 
@@ -201,8 +159,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOUBLE_VALUE = 3; /** - * - * *
      * Boolean parameter.
      * 
@@ -211,8 +167,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BOOLEAN_VALUE = 4; /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -221,8 +175,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECORD_VALUE = 5; /** - * - * *
      * Page ID for a Google+ Page.
      * 
@@ -231,6 +183,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PLUS_PAGE_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -255,59 +208,53 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return STRING; - case 2: - return INTEGER; - case 3: - return DOUBLE; - case 4: - return BOOLEAN; - case 5: - return RECORD; - case 6: - return PLUS_PAGE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return TYPE_UNSPECIFIED; + case 1: return STRING; + case 2: return INTEGER; + case 3: return DOUBLE; + case 4: return BOOLEAN; + case 5: return RECORD; + case 6: return PLUS_PAGE; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.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.datatransfer.v1.DataSourceParameter.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -327,14 +274,11 @@ private Type(int value) { public static final int PARAM_ID_FIELD_NUMBER = 1; private volatile java.lang.Object paramId_; /** - * - * *
    * Parameter identifier.
    * 
* * string param_id = 1; - * * @return The paramId. */ @java.lang.Override @@ -343,29 +287,29 @@ public java.lang.String getParamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paramId_ = s; return s; } } /** - * - * *
    * Parameter identifier.
    * 
* * string param_id = 1; - * * @return The bytes for paramId. */ @java.lang.Override - public com.google.protobuf.ByteString getParamIdBytes() { + public com.google.protobuf.ByteString + getParamIdBytes() { java.lang.Object ref = paramId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); paramId_ = b; return b; } else { @@ -376,14 +320,11 @@ public com.google.protobuf.ByteString getParamIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -392,29 +333,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -425,14 +366,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Parameter description.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -441,29 +379,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; } } /** - * - * *
    * Parameter 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 { @@ -474,52 +412,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** - * - * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { + @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED : result; } public static final int REQUIRED_FIELD_NUMBER = 5; private boolean required_; /** - * - * *
    * Is parameter required.
    * 
* * bool required = 5; - * * @return The required. */ @java.lang.Override @@ -530,14 +454,11 @@ public boolean getRequired() { public static final int REPEATED_FIELD_NUMBER = 6; private boolean repeated_; /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * bool repeated = 6; - * * @return The repeated. */ @java.lang.Override @@ -548,14 +469,11 @@ public boolean getRepeated() { public static final int VALIDATION_REGEX_FIELD_NUMBER = 7; private volatile java.lang.Object validationRegex_; /** - * - * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; - * * @return The validationRegex. */ @java.lang.Override @@ -564,29 +482,29 @@ public java.lang.String getValidationRegex() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationRegex_ = s; return s; } } /** - * - * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; - * * @return The bytes for validationRegex. */ @java.lang.Override - public com.google.protobuf.ByteString getValidationRegexBytes() { + public com.google.protobuf.ByteString + getValidationRegexBytes() { java.lang.Object ref = validationRegex_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); validationRegex_ = b; return b; } else { @@ -597,42 +515,34 @@ public com.google.protobuf.ByteString getValidationRegexBytes() { public static final int ALLOWED_VALUES_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList allowedValues_; /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @return A list containing the allowedValues. */ - public com.google.protobuf.ProtocolStringList getAllowedValuesList() { + public com.google.protobuf.ProtocolStringList + getAllowedValuesList() { return allowedValues_; } /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @return The count of allowedValues. */ public int getAllowedValuesCount() { return allowedValues_.size(); } /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @param index The index of the element to return. * @return The allowedValues at the given index. */ @@ -640,32 +550,27 @@ public java.lang.String getAllowedValues(int index) { return allowedValues_.get(index); } /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @param index The index of the value to return. * @return The bytes of the allowedValues at the given index. */ - public com.google.protobuf.ByteString getAllowedValuesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedValuesBytes(int index) { return allowedValues_.getByteString(index); } public static final int MIN_VALUE_FIELD_NUMBER = 9; private com.google.protobuf.DoubleValue minValue_; /** - * - * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; - * * @return Whether the minValue field is set. */ @java.lang.Override @@ -673,14 +578,11 @@ public boolean hasMinValue() { return minValue_ != null; } /** - * - * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; - * * @return The minValue. */ @java.lang.Override @@ -688,8 +590,6 @@ public com.google.protobuf.DoubleValue getMinValue() { return minValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_; } /** - * - * *
    * For integer and double values specifies minimum allowed value.
    * 
@@ -704,14 +604,11 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { public static final int MAX_VALUE_FIELD_NUMBER = 10; private com.google.protobuf.DoubleValue maxValue_; /** - * - * *
-   * For integer and double values specifies maxminum allowed value.
+   * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; - * * @return Whether the maxValue field is set. */ @java.lang.Override @@ -719,14 +616,11 @@ public boolean hasMaxValue() { return maxValue_ != null; } /** - * - * *
-   * For integer and double values specifies maxminum allowed value.
+   * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; - * * @return The maxValue. */ @java.lang.Override @@ -734,10 +628,8 @@ public com.google.protobuf.DoubleValue getMaxValue() { return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; } /** - * - * *
-   * For integer and double values specifies maxminum allowed value.
+   * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; @@ -750,8 +642,6 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { public static final int FIELDS_FIELD_NUMBER = 11; private java.util.List fields_; /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -759,13 +649,10 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ @java.lang.Override - public java.util.List - getFieldsList() { + public java.util.List getFieldsList() { return fields_; } /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -773,14 +660,11 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + public java.util.List getFieldsOrBuilderList() { return fields_; } /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -792,8 +676,6 @@ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -805,8 +687,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getFields(i return fields_.get(index); } /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -822,15 +702,12 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder ge public static final int VALIDATION_DESCRIPTION_FIELD_NUMBER = 12; private volatile java.lang.Object validationDescription_; /** - * - * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; - * * @return The validationDescription. */ @java.lang.Override @@ -839,30 +716,30 @@ public java.lang.String getValidationDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationDescription_ = s; return s; } } /** - * - * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; - * * @return The bytes for validationDescription. */ @java.lang.Override - public com.google.protobuf.ByteString getValidationDescriptionBytes() { + public com.google.protobuf.ByteString + getValidationDescriptionBytes() { java.lang.Object ref = validationDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); validationDescription_ = b; return b; } else { @@ -873,14 +750,11 @@ public com.google.protobuf.ByteString getValidationDescriptionBytes() { public static final int VALIDATION_HELP_URL_FIELD_NUMBER = 13; private volatile java.lang.Object validationHelpUrl_; /** - * - * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; - * * @return The validationHelpUrl. */ @java.lang.Override @@ -889,29 +763,29 @@ public java.lang.String getValidationHelpUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationHelpUrl_ = s; return s; } } /** - * - * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; - * * @return The bytes for validationHelpUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getValidationHelpUrlBytes() { + public com.google.protobuf.ByteString + getValidationHelpUrlBytes() { java.lang.Object ref = validationHelpUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); validationHelpUrl_ = b; return b; } else { @@ -922,14 +796,11 @@ public com.google.protobuf.ByteString getValidationHelpUrlBytes() { public static final int IMMUTABLE_FIELD_NUMBER = 14; private boolean immutable_; /** - * - * *
    * Cannot be changed after initial creation.
    * 
* * bool immutable = 14; - * * @return The immutable. */ @java.lang.Override @@ -940,14 +811,11 @@ public boolean getImmutable() { public static final int RECURSE_FIELD_NUMBER = 15; private boolean recurse_; /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * bool recurse = 15; - * * @return The recurse. */ @java.lang.Override @@ -958,15 +826,12 @@ public boolean getRecurse() { public static final int DEPRECATED_FIELD_NUMBER = 20; private boolean deprecated_; /** - * - * *
    * If true, it should not be used in new transfers, and it should not be
    * visible to users.
    * 
* * bool deprecated = 20; - * * @return The deprecated. */ @java.lang.Override @@ -975,7 +840,6 @@ public boolean getDeprecated() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -987,7 +851,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(paramId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paramId_); } @@ -997,9 +862,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } - if (type_ - != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, type_); } if (required_ != false) { @@ -1056,16 +919,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - if (type_ - != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, type_); + if (type_ != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, type_); } if (required_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, required_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, required_); } if (repeated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, repeated_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, repeated_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationRegex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, validationRegex_); @@ -1079,13 +943,16 @@ public int getSerializedSize() { size += 1 * getAllowedValuesList().size(); } if (minValue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMinValue()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getMinValue()); } if (maxValue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMaxValue()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getMaxValue()); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, validationDescription_); @@ -1094,13 +961,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, validationHelpUrl_); } if (immutable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, immutable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, immutable_); } if (recurse_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, recurse_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, recurse_); } if (deprecated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, deprecated_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, deprecated_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1110,36 +980,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.datatransfer.v1.DataSourceParameter)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter other = - (com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter) obj; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter other = (com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter) obj; - if (!getParamId().equals(other.getParamId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getParamId() + .equals(other.getParamId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (type_ != other.type_) return false; - if (getRequired() != other.getRequired()) return false; - if (getRepeated() != other.getRepeated()) return false; - if (!getValidationRegex().equals(other.getValidationRegex())) return false; - if (!getAllowedValuesList().equals(other.getAllowedValuesList())) return false; + if (getRequired() + != other.getRequired()) return false; + if (getRepeated() + != other.getRepeated()) return false; + if (!getValidationRegex() + .equals(other.getValidationRegex())) return false; + if (!getAllowedValuesList() + .equals(other.getAllowedValuesList())) return false; if (hasMinValue() != other.hasMinValue()) return false; if (hasMinValue()) { - if (!getMinValue().equals(other.getMinValue())) return false; + if (!getMinValue() + .equals(other.getMinValue())) return false; } if (hasMaxValue() != other.hasMaxValue()) return false; if (hasMaxValue()) { - if (!getMaxValue().equals(other.getMaxValue())) return false; - } - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!getValidationDescription().equals(other.getValidationDescription())) return false; - if (!getValidationHelpUrl().equals(other.getValidationHelpUrl())) return false; - if (getImmutable() != other.getImmutable()) return false; - if (getRecurse() != other.getRecurse()) return false; - if (getDeprecated() != other.getDeprecated()) return false; + if (!getMaxValue() + .equals(other.getMaxValue())) return false; + } + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getValidationDescription() + .equals(other.getValidationDescription())) return false; + if (!getValidationHelpUrl() + .equals(other.getValidationHelpUrl())) return false; + if (getImmutable() + != other.getImmutable()) return false; + if (getRecurse() + != other.getRecurse()) return false; + if (getDeprecated() + != other.getDeprecated()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1160,9 +1044,11 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); hash = (37 * hash) + REPEATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRepeated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRepeated()); hash = (37 * hash) + VALIDATION_REGEX_FIELD_NUMBER; hash = (53 * hash) + getValidationRegex().hashCode(); if (getAllowedValuesCount() > 0) { @@ -1186,147 +1072,143 @@ public int hashCode() { hash = (37 * hash) + VALIDATION_HELP_URL_FIELD_NUMBER; hash = (53 * hash) + getValidationHelpUrl().hashCode(); hash = (37 * hash) + IMMUTABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImmutable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getImmutable()); hash = (37 * hash) + RECURSE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecurse()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecurse()); hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeprecated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeprecated()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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; } /** - * - * *
    * A parameter used to define custom fields in a data source definition.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSourceParameter} */ - 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.datatransfer.v1.DataSourceParameter) com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.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(); @@ -1379,14 +1261,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance(); } @@ -1401,8 +1282,7 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter result = - new com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter(this); + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter result = new com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter(this); int from_bitField0_ = bitField0_; result.paramId_ = paramId_; result.displayName_ = displayName_; @@ -1448,39 +1328,38 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter buildPartia 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.datatransfer.v1.DataSourceParameter) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter)other); } else { super.mergeFrom(other); return this; @@ -1488,9 +1367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()) return this; if (!other.getParamId().isEmpty()) { paramId_ = other.paramId_; onChanged(); @@ -1550,10 +1427,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSourcePar fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -1602,118 +1478,105 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - paramId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - type_ = input.readEnum(); - - break; - } // case 32 - case 40: - { - required_ = input.readBool(); - - break; - } // case 40 - case 48: - { - repeated_ = input.readBool(); - - break; - } // case 48 - case 58: - { - validationRegex_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedValuesIsMutable(); - allowedValues_.add(s); - break; - } // case 66 - case 74: - { - input.readMessage(getMinValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getMaxValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - validationDescription_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - validationHelpUrl_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: - { - immutable_ = input.readBool(); - - break; - } // case 112 - case 120: - { - recurse_ = input.readBool(); - - break; - } // case 120 - case 160: - { - deprecated_ = input.readBool(); - - break; - } // case 160 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + paramId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + type_ = input.readEnum(); + + break; + } // case 32 + case 40: { + required_ = input.readBool(); + + break; + } // case 40 + case 48: { + repeated_ = input.readBool(); + + break; + } // case 48 + case 58: { + validationRegex_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedValuesIsMutable(); + allowedValues_.add(s); + break; + } // case 66 + case 74: { + input.readMessage( + getMinValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getMaxValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 90: { + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + validationDescription_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + validationHelpUrl_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: { + immutable_ = input.readBool(); + + break; + } // case 112 + case 120: { + recurse_ = input.readBool(); + + break; + } // case 120 + case 160: { + deprecated_ = input.readBool(); + + break; + } // case 160 + 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) { @@ -1723,25 +1586,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object paramId_ = ""; /** - * - * *
      * Parameter identifier.
      * 
* * string param_id = 1; - * * @return The paramId. */ public java.lang.String getParamId() { java.lang.Object ref = paramId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paramId_ = s; return s; @@ -1750,21 +1610,20 @@ public java.lang.String getParamId() { } } /** - * - * *
      * Parameter identifier.
      * 
* * string param_id = 1; - * * @return The bytes for paramId. */ - public com.google.protobuf.ByteString getParamIdBytes() { + public com.google.protobuf.ByteString + getParamIdBytes() { java.lang.Object ref = paramId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); paramId_ = b; return b; } else { @@ -1772,61 +1631,54 @@ public com.google.protobuf.ByteString getParamIdBytes() { } } /** - * - * *
      * Parameter identifier.
      * 
* * string param_id = 1; - * * @param value The paramId to set. * @return This builder for chaining. */ - public Builder setParamId(java.lang.String value) { + public Builder setParamId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + paramId_ = value; onChanged(); return this; } /** - * - * *
      * Parameter identifier.
      * 
* * string param_id = 1; - * * @return This builder for chaining. */ public Builder clearParamId() { - + paramId_ = getDefaultInstance().getParamId(); onChanged(); return this; } /** - * - * *
      * Parameter identifier.
      * 
* * string param_id = 1; - * * @param value The bytes for paramId to set. * @return This builder for chaining. */ - public Builder setParamIdBytes(com.google.protobuf.ByteString value) { + public Builder setParamIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + paramId_ = value; onChanged(); return this; @@ -1834,20 +1686,18 @@ public Builder setParamIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1856,21 +1706,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1878,61 +1727,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1940,20 +1782,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Parameter 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; @@ -1962,21 +1802,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Parameter 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 { @@ -1984,61 +1823,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Parameter description.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Parameter description.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Parameter description.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2046,108 +1878,85 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED : result; } /** - * - * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type value) { + public Builder setType(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean required_; + private boolean required_ ; /** - * - * *
      * Is parameter required.
      * 
* * bool required = 5; - * * @return The required. */ @java.lang.Override @@ -2155,51 +1964,42 @@ public boolean getRequired() { return required_; } /** - * - * *
      * Is parameter required.
      * 
* * bool required = 5; - * * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { - + required_ = value; onChanged(); return this; } /** - * - * *
      * Is parameter required.
      * 
* * bool required = 5; - * * @return This builder for chaining. */ public Builder clearRequired() { - + required_ = false; onChanged(); return this; } - private boolean repeated_; + private boolean repeated_ ; /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool repeated = 6; - * * @return The repeated. */ @java.lang.Override @@ -2207,36 +2007,30 @@ public boolean getRepeated() { return repeated_; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool repeated = 6; - * * @param value The repeated to set. * @return This builder for chaining. */ public Builder setRepeated(boolean value) { - + repeated_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool repeated = 6; - * * @return This builder for chaining. */ public Builder clearRepeated() { - + repeated_ = false; onChanged(); return this; @@ -2244,20 +2038,18 @@ public Builder clearRepeated() { private java.lang.Object validationRegex_ = ""; /** - * - * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; - * * @return The validationRegex. */ public java.lang.String getValidationRegex() { java.lang.Object ref = validationRegex_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationRegex_ = s; return s; @@ -2266,21 +2058,20 @@ public java.lang.String getValidationRegex() { } } /** - * - * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; - * * @return The bytes for validationRegex. */ - public com.google.protobuf.ByteString getValidationRegexBytes() { + public com.google.protobuf.ByteString + getValidationRegexBytes() { java.lang.Object ref = validationRegex_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); validationRegex_ = b; return b; } else { @@ -2288,112 +2079,95 @@ public com.google.protobuf.ByteString getValidationRegexBytes() { } } /** - * - * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; - * * @param value The validationRegex to set. * @return This builder for chaining. */ - public Builder setValidationRegex(java.lang.String value) { + public Builder setValidationRegex( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + validationRegex_ = value; onChanged(); return this; } /** - * - * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; - * * @return This builder for chaining. */ public Builder clearValidationRegex() { - + validationRegex_ = getDefaultInstance().getValidationRegex(); onChanged(); return this; } /** - * - * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; - * * @param value The bytes for validationRegex to set. * @return This builder for chaining. */ - public Builder setValidationRegexBytes(com.google.protobuf.ByteString value) { + public Builder setValidationRegexBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationRegex_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedValues_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { allowedValues_ = new com.google.protobuf.LazyStringArrayList(allowedValues_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @return A list containing the allowedValues. */ - public com.google.protobuf.ProtocolStringList getAllowedValuesList() { + public com.google.protobuf.ProtocolStringList + getAllowedValuesList() { return allowedValues_.getUnmodifiableView(); } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @return The count of allowedValues. */ public int getAllowedValuesCount() { return allowedValues_.size(); } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @param index The index of the element to return. * @return The allowedValues at the given index. */ @@ -2401,90 +2175,80 @@ public java.lang.String getAllowedValues(int index) { return allowedValues_.get(index); } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @param index The index of the value to return. * @return The bytes of the allowedValues at the given index. */ - public com.google.protobuf.ByteString getAllowedValuesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedValuesBytes(int index) { return allowedValues_.getByteString(index); } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @param index The index to set the value at. * @param value The allowedValues to set. * @return This builder for chaining. */ - public Builder setAllowedValues(int index, java.lang.String value) { + public Builder setAllowedValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedValuesIsMutable(); allowedValues_.set(index, value); onChanged(); return this; } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @param value The allowedValues to add. * @return This builder for chaining. */ - public Builder addAllowedValues(java.lang.String value) { + public Builder addAllowedValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedValuesIsMutable(); allowedValues_.add(value); onChanged(); return this; } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @param values The allowedValues to add. * @return This builder for chaining. */ - public Builder addAllAllowedValues(java.lang.Iterable values) { + public Builder addAllAllowedValues( + java.lang.Iterable values) { ensureAllowedValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedValues_); onChanged(); return this; } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @return This builder for chaining. */ public Builder clearAllowedValues() { @@ -2494,22 +2258,20 @@ public Builder clearAllowedValues() { return this; } /** - * - * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; - * * @param value The bytes of the allowedValues to add. * @return This builder for chaining. */ - public Builder addAllowedValuesBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedValuesIsMutable(); allowedValues_.add(value); onChanged(); @@ -2518,33 +2280,24 @@ public Builder addAllowedValuesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.DoubleValue minValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, - com.google.protobuf.DoubleValue.Builder, - com.google.protobuf.DoubleValueOrBuilder> - minValueBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> minValueBuilder_; /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
* * .google.protobuf.DoubleValue min_value = 9; - * * @return Whether the minValue field is set. */ public boolean hasMinValue() { return minValueBuilder_ != null || minValue_ != null; } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
* * .google.protobuf.DoubleValue min_value = 9; - * * @return The minValue. */ public com.google.protobuf.DoubleValue getMinValue() { @@ -2555,8 +2308,6 @@ public com.google.protobuf.DoubleValue getMinValue() { } } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2577,15 +2328,14 @@ public Builder setMinValue(com.google.protobuf.DoubleValue value) { return this; } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
* * .google.protobuf.DoubleValue min_value = 9; */ - public Builder setMinValue(com.google.protobuf.DoubleValue.Builder builderForValue) { + public Builder setMinValue( + com.google.protobuf.DoubleValue.Builder builderForValue) { if (minValueBuilder_ == null) { minValue_ = builderForValue.build(); onChanged(); @@ -2596,8 +2346,6 @@ public Builder setMinValue(com.google.protobuf.DoubleValue.Builder builderForVal return this; } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2608,7 +2356,7 @@ public Builder mergeMinValue(com.google.protobuf.DoubleValue value) { if (minValueBuilder_ == null) { if (minValue_ != null) { minValue_ = - com.google.protobuf.DoubleValue.newBuilder(minValue_).mergeFrom(value).buildPartial(); + com.google.protobuf.DoubleValue.newBuilder(minValue_).mergeFrom(value).buildPartial(); } else { minValue_ = value; } @@ -2620,8 +2368,6 @@ public Builder mergeMinValue(com.google.protobuf.DoubleValue value) { return this; } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2640,8 +2386,6 @@ public Builder clearMinValue() { return this; } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2649,13 +2393,11 @@ public Builder clearMinValue() { * .google.protobuf.DoubleValue min_value = 9; */ public com.google.protobuf.DoubleValue.Builder getMinValueBuilder() { - + onChanged(); return getMinValueFieldBuilder().getBuilder(); } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2666,12 +2408,11 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { if (minValueBuilder_ != null) { return minValueBuilder_.getMessageOrBuilder(); } else { - return minValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_; + return minValue_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_; } } /** - * - * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2679,17 +2420,14 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { * .google.protobuf.DoubleValue min_value = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, - com.google.protobuf.DoubleValue.Builder, - com.google.protobuf.DoubleValueOrBuilder> + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> getMinValueFieldBuilder() { if (minValueBuilder_ == null) { - minValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, - com.google.protobuf.DoubleValue.Builder, - com.google.protobuf.DoubleValueOrBuilder>( - getMinValue(), getParentForChildren(), isClean()); + minValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getMinValue(), + getParentForChildren(), + isClean()); minValue_ = null; } return minValueBuilder_; @@ -2697,33 +2435,24 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { private com.google.protobuf.DoubleValue maxValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, - com.google.protobuf.DoubleValue.Builder, - com.google.protobuf.DoubleValueOrBuilder> - maxValueBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> maxValueBuilder_; /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; - * * @return Whether the maxValue field is set. */ public boolean hasMaxValue() { return maxValueBuilder_ != null || maxValue_ != null; } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; - * * @return The maxValue. */ public com.google.protobuf.DoubleValue getMaxValue() { @@ -2734,10 +2463,8 @@ public com.google.protobuf.DoubleValue getMaxValue() { } } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; @@ -2756,15 +2483,14 @@ public Builder setMaxValue(com.google.protobuf.DoubleValue value) { return this; } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; */ - public Builder setMaxValue(com.google.protobuf.DoubleValue.Builder builderForValue) { + public Builder setMaxValue( + com.google.protobuf.DoubleValue.Builder builderForValue) { if (maxValueBuilder_ == null) { maxValue_ = builderForValue.build(); onChanged(); @@ -2775,10 +2501,8 @@ public Builder setMaxValue(com.google.protobuf.DoubleValue.Builder builderForVal return this; } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; @@ -2787,7 +2511,7 @@ public Builder mergeMaxValue(com.google.protobuf.DoubleValue value) { if (maxValueBuilder_ == null) { if (maxValue_ != null) { maxValue_ = - com.google.protobuf.DoubleValue.newBuilder(maxValue_).mergeFrom(value).buildPartial(); + com.google.protobuf.DoubleValue.newBuilder(maxValue_).mergeFrom(value).buildPartial(); } else { maxValue_ = value; } @@ -2799,10 +2523,8 @@ public Builder mergeMaxValue(com.google.protobuf.DoubleValue value) { return this; } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; @@ -2819,24 +2541,20 @@ public Builder clearMaxValue() { return this; } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; */ public com.google.protobuf.DoubleValue.Builder getMaxValueBuilder() { - + onChanged(); return getMaxValueFieldBuilder().getBuilder(); } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; @@ -2845,64 +2563,51 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { if (maxValueBuilder_ != null) { return maxValueBuilder_.getMessageOrBuilder(); } else { - return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; + return maxValue_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; } } /** - * - * *
-     * For integer and double values specifies maxminum allowed value.
+     * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, - com.google.protobuf.DoubleValue.Builder, - com.google.protobuf.DoubleValueOrBuilder> + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> getMaxValueFieldBuilder() { if (maxValueBuilder_ == null) { - maxValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, - com.google.protobuf.DoubleValue.Builder, - com.google.protobuf.DoubleValueOrBuilder>( - getMaxValue(), getParentForChildren(), isClean()); + maxValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getMaxValue(), + getParentForChildren(), + isClean()); maxValue_ = null; } return maxValueBuilder_; } private java.util.List fields_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fields_ = - new java.util.ArrayList( - fields_); + fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> - fieldsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> fieldsBuilder_; /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public java.util.List - getFieldsList() { + public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -2910,8 +2615,6 @@ private void ensureFieldsIsMutable() { } } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -2926,8 +2629,6 @@ public int getFieldsCount() { } } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -2942,8 +2643,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getFields(i } } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -2965,8 +2664,6 @@ public Builder setFields( return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -2974,8 +2671,7 @@ public Builder setFields( * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ public Builder setFields( - int index, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -2986,8 +2682,6 @@ public Builder setFields( return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3008,8 +2702,6 @@ public Builder addFields(com.google.cloud.bigquery.datatransfer.v1.DataSourcePar return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3031,8 +2723,6 @@ public Builder addFields( return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3051,8 +2741,6 @@ public Builder addFields( return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3060,8 +2748,7 @@ public Builder addFields( * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ public Builder addFields( - int index, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -3072,8 +2759,6 @@ public Builder addFields( return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3081,11 +2766,11 @@ public Builder addFields( * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ public Builder addAllFields( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -3093,8 +2778,6 @@ public Builder addAllFields( return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3112,8 +2795,6 @@ public Builder clearFields() { return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3131,8 +2812,6 @@ public Builder removeFields(int index) { return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3144,34 +2823,28 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder get return getFieldsFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder - getFieldsOrBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getFieldsOrBuilder( + int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { + return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public java.util.List< - ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -3179,23 +2852,17 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder get } } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder - addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addFieldsBuilder() { + return getFieldsFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** - * - * *
      * Deprecated. This field has no effect.
      * 
@@ -3204,37 +2871,30 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder get */ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( - fields_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( + fields_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); fields_ = null; } return fieldsBuilder_; @@ -3242,21 +2902,19 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder add private java.lang.Object validationDescription_ = ""; /** - * - * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; - * * @return The validationDescription. */ public java.lang.String getValidationDescription() { java.lang.Object ref = validationDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationDescription_ = s; return s; @@ -3265,22 +2923,21 @@ public java.lang.String getValidationDescription() { } } /** - * - * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; - * * @return The bytes for validationDescription. */ - public com.google.protobuf.ByteString getValidationDescriptionBytes() { + public com.google.protobuf.ByteString + getValidationDescriptionBytes() { java.lang.Object ref = validationDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); validationDescription_ = b; return b; } else { @@ -3288,64 +2945,57 @@ public com.google.protobuf.ByteString getValidationDescriptionBytes() { } } /** - * - * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; - * * @param value The validationDescription to set. * @return This builder for chaining. */ - public Builder setValidationDescription(java.lang.String value) { + public Builder setValidationDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + validationDescription_ = value; onChanged(); return this; } /** - * - * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; - * * @return This builder for chaining. */ public Builder clearValidationDescription() { - + validationDescription_ = getDefaultInstance().getValidationDescription(); onChanged(); return this; } /** - * - * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; - * * @param value The bytes for validationDescription to set. * @return This builder for chaining. */ - public Builder setValidationDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setValidationDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationDescription_ = value; onChanged(); return this; @@ -3353,20 +3003,18 @@ public Builder setValidationDescriptionBytes(com.google.protobuf.ByteString valu private java.lang.Object validationHelpUrl_ = ""; /** - * - * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; - * * @return The validationHelpUrl. */ public java.lang.String getValidationHelpUrl() { java.lang.Object ref = validationHelpUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationHelpUrl_ = s; return s; @@ -3375,21 +3023,20 @@ public java.lang.String getValidationHelpUrl() { } } /** - * - * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; - * * @return The bytes for validationHelpUrl. */ - public com.google.protobuf.ByteString getValidationHelpUrlBytes() { + public com.google.protobuf.ByteString + getValidationHelpUrlBytes() { java.lang.Object ref = validationHelpUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); validationHelpUrl_ = b; return b; } else { @@ -3397,76 +3044,66 @@ public com.google.protobuf.ByteString getValidationHelpUrlBytes() { } } /** - * - * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; - * * @param value The validationHelpUrl to set. * @return This builder for chaining. */ - public Builder setValidationHelpUrl(java.lang.String value) { + public Builder setValidationHelpUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + validationHelpUrl_ = value; onChanged(); return this; } /** - * - * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; - * * @return This builder for chaining. */ public Builder clearValidationHelpUrl() { - + validationHelpUrl_ = getDefaultInstance().getValidationHelpUrl(); onChanged(); return this; } /** - * - * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; - * * @param value The bytes for validationHelpUrl to set. * @return This builder for chaining. */ - public Builder setValidationHelpUrlBytes(com.google.protobuf.ByteString value) { + public Builder setValidationHelpUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationHelpUrl_ = value; onChanged(); return this; } - private boolean immutable_; + private boolean immutable_ ; /** - * - * *
      * Cannot be changed after initial creation.
      * 
* * bool immutable = 14; - * * @return The immutable. */ @java.lang.Override @@ -3474,51 +3111,42 @@ public boolean getImmutable() { return immutable_; } /** - * - * *
      * Cannot be changed after initial creation.
      * 
* * bool immutable = 14; - * * @param value The immutable to set. * @return This builder for chaining. */ public Builder setImmutable(boolean value) { - + immutable_ = value; onChanged(); return this; } /** - * - * *
      * Cannot be changed after initial creation.
      * 
* * bool immutable = 14; - * * @return This builder for chaining. */ public Builder clearImmutable() { - + immutable_ = false; onChanged(); return this; } - private boolean recurse_; + private boolean recurse_ ; /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool recurse = 15; - * * @return The recurse. */ @java.lang.Override @@ -3526,52 +3154,43 @@ public boolean getRecurse() { return recurse_; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool recurse = 15; - * * @param value The recurse to set. * @return This builder for chaining. */ public Builder setRecurse(boolean value) { - + recurse_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated. This field has no effect.
      * 
* * bool recurse = 15; - * * @return This builder for chaining. */ public Builder clearRecurse() { - + recurse_ = false; onChanged(); return this; } - private boolean deprecated_; + private boolean deprecated_ ; /** - * - * *
      * If true, it should not be used in new transfers, and it should not be
      * visible to users.
      * 
* * bool deprecated = 20; - * * @return The deprecated. */ @java.lang.Override @@ -3579,45 +3198,39 @@ public boolean getDeprecated() { return deprecated_; } /** - * - * *
      * If true, it should not be used in new transfers, and it should not be
      * visible to users.
      * 
* * bool deprecated = 20; - * * @param value The deprecated to set. * @return This builder for chaining. */ public Builder setDeprecated(boolean value) { - + deprecated_ = value; onChanged(); return this; } /** - * - * *
      * If true, it should not be used in new transfers, and it should not be
      * visible to users.
      * 
* * bool deprecated = 20; - * * @return This builder for chaining. */ public Builder clearDeprecated() { - + deprecated_ = 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); } @@ -3627,13 +3240,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) - private static final com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter(); } @@ -3642,27 +3254,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSourceParameter 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 DataSourceParameter 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; @@ -3677,4 +3289,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java similarity index 80% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java index 4ff4b17ec274..98b778a8ae80 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java @@ -1,257 +1,191 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface DataSourceParameterOrBuilder - extends +public interface DataSourceParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Parameter identifier.
    * 
* * string param_id = 1; - * * @return The paramId. */ java.lang.String getParamId(); /** - * - * *
    * Parameter identifier.
    * 
* * string param_id = 1; - * * @return The bytes for paramId. */ - com.google.protobuf.ByteString getParamIdBytes(); + com.google.protobuf.ByteString + getParamIdBytes(); /** - * - * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Parameter description.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Parameter description.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; - * * @return The type. */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType(); /** - * - * *
    * Is parameter required.
    * 
* * bool required = 5; - * * @return The required. */ boolean getRequired(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * bool repeated = 6; - * * @return The repeated. */ boolean getRepeated(); /** - * - * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; - * * @return The validationRegex. */ java.lang.String getValidationRegex(); /** - * - * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; - * * @return The bytes for validationRegex. */ - com.google.protobuf.ByteString getValidationRegexBytes(); + com.google.protobuf.ByteString + getValidationRegexBytes(); /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @return A list containing the allowedValues. */ - java.util.List getAllowedValuesList(); + java.util.List + getAllowedValuesList(); /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @return The count of allowedValues. */ int getAllowedValuesCount(); /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @param index The index of the element to return. * @return The allowedValues at the given index. */ java.lang.String getAllowedValues(int index); /** - * - * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; - * * @param index The index of the value to return. * @return The bytes of the allowedValues at the given index. */ - com.google.protobuf.ByteString getAllowedValuesBytes(int index); + com.google.protobuf.ByteString + getAllowedValuesBytes(int index); /** - * - * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; - * * @return Whether the minValue field is set. */ boolean hasMinValue(); /** - * - * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; - * * @return The minValue. */ com.google.protobuf.DoubleValue getMinValue(); /** - * - * *
    * For integer and double values specifies minimum allowed value.
    * 
@@ -261,34 +195,26 @@ public interface DataSourceParameterOrBuilder com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder(); /** - * - * *
-   * For integer and double values specifies maxminum allowed value.
+   * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; - * * @return Whether the maxValue field is set. */ boolean hasMaxValue(); /** - * - * *
-   * For integer and double values specifies maxminum allowed value.
+   * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; - * * @return The maxValue. */ com.google.protobuf.DoubleValue getMaxValue(); /** - * - * *
-   * For integer and double values specifies maxminum allowed value.
+   * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; @@ -296,18 +222,15 @@ public interface DataSourceParameterOrBuilder com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -316,8 +239,6 @@ public interface DataSourceParameterOrBuilder */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getFields(int index); /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -326,19 +247,15 @@ public interface DataSourceParameterOrBuilder */ int getFieldsCount(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
@@ -349,93 +266,74 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getFields int index); /** - * - * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; - * * @return The validationDescription. */ java.lang.String getValidationDescription(); /** - * - * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; - * * @return The bytes for validationDescription. */ - com.google.protobuf.ByteString getValidationDescriptionBytes(); + com.google.protobuf.ByteString + getValidationDescriptionBytes(); /** - * - * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; - * * @return The validationHelpUrl. */ java.lang.String getValidationHelpUrl(); /** - * - * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; - * * @return The bytes for validationHelpUrl. */ - com.google.protobuf.ByteString getValidationHelpUrlBytes(); + com.google.protobuf.ByteString + getValidationHelpUrlBytes(); /** - * - * *
    * Cannot be changed after initial creation.
    * 
* * bool immutable = 14; - * * @return The immutable. */ boolean getImmutable(); /** - * - * *
    * Deprecated. This field has no effect.
    * 
* * bool recurse = 15; - * * @return The recurse. */ boolean getRecurse(); /** - * - * *
    * If true, it should not be used in new transfers, and it should not be
    * visible to users.
    * 
* * bool deprecated = 20; - * * @return The deprecated. */ boolean getDeprecated(); diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java new file mode 100644 index 000000000000..e77ee7a1efa9 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public final class DataTransferProto { + private DataTransferProto() {} + 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_datatransfer_v1_DataSourceParameter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/bigquery/datatransfer/v1/" + + "datatransfer.proto\022%google.cloud.bigquer" + + "y.datatransfer.v1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0324google/cloud/bigquery/data" + + "transfer/v1/transfer.proto\032\036google/proto" + + "buf/duration.proto\032\033google/protobuf/empt" + + "y.proto\032 google/protobuf/field_mask.prot" + + "o\032\037google/protobuf/timestamp.proto\032\036goog" + + "le/protobuf/wrappers.proto\"\205\005\n\023DataSourc" + + "eParameter\022\020\n\010param_id\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022M\n\004type\030" + + "\004 \001(\0162?.google.cloud.bigquery.datatransf" + + "er.v1.DataSourceParameter.Type\022\020\n\010requir" + + "ed\030\005 \001(\010\022\020\n\010repeated\030\006 \001(\010\022\030\n\020validation" + + "_regex\030\007 \001(\t\022\026\n\016allowed_values\030\010 \003(\t\022/\n\t" + + "min_value\030\t \001(\0132\034.google.protobuf.Double" + + "Value\022/\n\tmax_value\030\n \001(\0132\034.google.protob" + + "uf.DoubleValue\022J\n\006fields\030\013 \003(\0132:.google." + + "cloud.bigquery.datatransfer.v1.DataSourc" + + "eParameter\022\036\n\026validation_description\030\014 \001" + + "(\t\022\033\n\023validation_help_url\030\r \001(\t\022\021\n\timmut" + + "able\030\016 \001(\010\022\017\n\007recurse\030\017 \001(\010\022\022\n\ndeprecate" + + "d\030\024 \001(\010\"i\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006STRING\020\001\022\013\n\007INTEGER\020\002\022\n\n\006DOUBLE\020\003\022\013\n\007BO" + + "OLEAN\020\004\022\n\n\006RECORD\020\005\022\r\n\tPLUS_PAGE\020\006\"\234\t\n\nD" + + "ataSource\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016data_sou" + + "rce_id\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\023\n\013de" + + "scription\030\004 \001(\t\022\021\n\tclient_id\030\005 \001(\t\022\016\n\006sc" + + "opes\030\006 \003(\t\022N\n\rtransfer_type\030\007 \001(\01623.goog" + + "le.cloud.bigquery.datatransfer.v1.Transf" + + "erTypeB\002\030\001\022\'\n\033supports_multiple_transfer" + + "s\030\010 \001(\010B\002\030\001\022\037\n\027update_deadline_seconds\030\t" + + " \001(\005\022\030\n\020default_schedule\030\n \001(\t\022 \n\030suppor" + + "ts_custom_schedule\030\013 \001(\010\022N\n\nparameters\030\014" + + " \003(\0132:.google.cloud.bigquery.datatransfe" + + "r.v1.DataSourceParameter\022\020\n\010help_url\030\r \001" + + "(\t\022_\n\022authorization_type\030\016 \001(\0162C.google." + + "cloud.bigquery.datatransfer.v1.DataSourc" + + "e.AuthorizationType\022\\\n\021data_refresh_type" + + "\030\017 \001(\0162A.google.cloud.bigquery.datatrans" + + "fer.v1.DataSource.DataRefreshType\022(\n def" + + "ault_data_refresh_window_days\030\020 \001(\005\022\034\n\024m" + + "anual_runs_disabled\030\021 \001(\010\022<\n\031minimum_sch" + + "edule_interval\030\022 \001(\0132\031.google.protobuf.D" + + "uration\"\212\001\n\021AuthorizationType\022\"\n\036AUTHORI" + + "ZATION_TYPE_UNSPECIFIED\020\000\022\026\n\022AUTHORIZATI" + + "ON_CODE\020\001\022\"\n\036GOOGLE_PLUS_AUTHORIZATION_C" + + "ODE\020\002\022\025\n\021FIRST_PARTY_OAUTH\020\003\"c\n\017DataRefr" + + "eshType\022!\n\035DATA_REFRESH_TYPE_UNSPECIFIED" + + "\020\000\022\022\n\016SLIDING_WINDOW\020\001\022\031\n\025CUSTOM_SLIDING" + + "_WINDOW\020\002:\245\001\352A\241\001\n.bigquerydatatransfer.g" + + "oogleapis.com/DataSource\022,projects/{proj" + + "ect}/dataSources/{data_source}\022Aprojects" + + "/{project}/locations/{location}/dataSour" + + "ces/{data_source}\"\\\n\024GetDataSourceReques" + + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.bigquerydatatra" + + "nsfer.googleapis.com/DataSource\"\207\001\n\026List" + + "DataSourcesRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" + + "A0\022.bigquerydatatransfer.googleapis.com/" + + "DataSource\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_s" + + "ize\030\004 \001(\005\"\200\001\n\027ListDataSourcesResponse\022G\n" + + "\014data_sources\030\001 \003(\01321.google.cloud.bigqu" + + "ery.datatransfer.v1.DataSource\022\034\n\017next_p" + + "age_token\030\002 \001(\tB\003\340A\003\"\216\002\n\033CreateTransferC" + + "onfigRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bi" + + "gquerydatatransfer.googleapis.com/Transf" + + "erConfig\022S\n\017transfer_config\030\002 \001(\01325.goog" + + "le.cloud.bigquery.datatransfer.v1.Transf" + + "erConfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(" + + "\t\022\024\n\014version_info\030\005 \001(\t\022\034\n\024service_accou" + + "nt_name\030\006 \001(\t\"\370\001\n\033UpdateTransferConfigRe" + + "quest\022S\n\017transfer_config\030\001 \001(\01325.google." + + "cloud.bigquery.datatransfer.v1.TransferC" + + "onfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(\t\0224" + + "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022\024\n\014version_info\030\005 \001(\t\022\034\n\024se" + + "rvice_account_name\030\006 \001(\t\"d\n\030GetTransferC" + + "onfigRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2bigq" + + "uerydatatransfer.googleapis.com/Transfer" + + "Config\"g\n\033DeleteTransferConfigRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatransfe" + + "r.googleapis.com/TransferConfig\"V\n\025GetTr" + + "ansferRunRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'" + + "bigquerydatatransfer.googleapis.com/Run\"" + + "Y\n\030DeleteTransferRunRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'bigquerydatatransfer.googleap" + + "is.com/Run\"\250\001\n\032ListTransferConfigsReques" + + "t\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bigquerydatat" + + "ransfer.googleapis.com/TransferConfig\022\027\n" + + "\017data_source_ids\030\002 \003(\t\022\022\n\npage_token\030\003 \001" + + "(\t\022\021\n\tpage_size\030\004 \001(\005\"\221\001\n\033ListTransferCo" + + "nfigsResponse\022T\n\020transfer_configs\030\001 \003(\0132" + + "5.google.cloud.bigquery.datatransfer.v1." + + "TransferConfigB\003\340A\003\022\034\n\017next_page_token\030\002" + + " \001(\tB\003\340A\003\"\336\002\n\027ListTransferRunsRequest\022?\n" + + "\006parent\030\001 \001(\tB/\340A\002\372A)\022\'bigquerydatatrans" + + "fer.googleapis.com/Run\022D\n\006states\030\002 \003(\01624" + + ".google.cloud.bigquery.datatransfer.v1.T" + + "ransferState\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage" + + "_size\030\004 \001(\005\022^\n\013run_attempt\030\005 \001(\0162I.googl" + + "e.cloud.bigquery.datatransfer.v1.ListTra" + + "nsferRunsRequest.RunAttempt\"5\n\nRunAttemp" + + "t\022\033\n\027RUN_ATTEMPT_UNSPECIFIED\020\000\022\n\n\006LATEST" + + "\020\001\"\210\001\n\030ListTransferRunsResponse\022N\n\rtrans" + + "fer_runs\030\001 \003(\01322.google.cloud.bigquery.d" + + "atatransfer.v1.TransferRunB\003\340A\003\022\034\n\017next_" + + "page_token\030\002 \001(\tB\003\340A\003\"\340\001\n\027ListTransferLo" + + "gsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'bigqu" + + "erydatatransfer.googleapis.com/Run\022\022\n\npa" + + "ge_token\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\022]\n\rmes" + + "sage_types\030\006 \003(\0162F.google.cloud.bigquery" + + ".datatransfer.v1.TransferMessage.Message" + + "Severity\"\220\001\n\030ListTransferLogsResponse\022V\n" + + "\021transfer_messages\030\001 \003(\01326.google.cloud." + + "bigquery.datatransfer.v1.TransferMessage" + + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"^\n\026C" + + "heckValidCredsRequest\022D\n\004name\030\001 \001(\tB6\340A\002" + + "\372A0\n.bigquerydatatransfer.googleapis.com" + + "/DataSource\"2\n\027CheckValidCredsResponse\022\027" + + "\n\017has_valid_creds\030\001 \001(\010\"\321\001\n\033ScheduleTran" + + "sferRunsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\n" + + "2bigquerydatatransfer.googleapis.com/Tra" + + "nsferConfig\0223\n\nstart_time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\002\0221\n\010end_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\002\"`\n\034S" + + "cheduleTransferRunsResponse\022@\n\004runs\030\001 \003(" + + "\01322.google.cloud.bigquery.datatransfer.v" + + "1.TransferRun\"\207\003\n\036StartManualTransferRun" + + "sRequest\022G\n\006parent\030\001 \001(\tB7\372A4\n2bigqueryd" + + "atatransfer.googleapis.com/TransferConfi" + + "g\022o\n\024requested_time_range\030\003 \001(\0132O.google" + + ".cloud.bigquery.datatransfer.v1.StartMan" + + "ualTransferRunsRequest.TimeRangeH\000\0228\n\022re" + + "quested_run_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampH\000\032i\n\tTimeRange\022.\n\nstart_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\006\n\004time\"c\n\037StartManualTransferRunsRespon" + + "se\022@\n\004runs\030\001 \003(\01322.google.cloud.bigquery" + + ".datatransfer.v1.TransferRun\"A\n\030EnrollDa" + + "taSourcesRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017data_s" + + "ource_ids\030\002 \003(\t2\240!\n\023DataTransferService\022" + + "\346\001\n\rGetDataSource\022;.google.cloud.bigquer" + + "y.datatransfer.v1.GetDataSourceRequest\0321" + + ".google.cloud.bigquery.datatransfer.v1.D" + + "ataSource\"e\202\323\344\223\002X\022//v1/{name=projects/*/" + + "locations/*/dataSources/*}Z%\022#/v1/{name=" + + "projects/*/dataSources/*}\332A\004name\022\371\001\n\017Lis" + + "tDataSources\022=.google.cloud.bigquery.dat" + + "atransfer.v1.ListDataSourcesRequest\032>.go" + + "ogle.cloud.bigquery.datatransfer.v1.List" + + "DataSourcesResponse\"g\202\323\344\223\002X\022//v1/{parent" + + "=projects/*/locations/*}/dataSourcesZ%\022#" + + "/v1/{parent=projects/*}/dataSources\332A\006pa" + + "rent\022\266\002\n\024CreateTransferConfig\022B.google.c" + + "loud.bigquery.datatransfer.v1.CreateTran" + + "sferConfigRequest\0325.google.cloud.bigquer" + + "y.datatransfer.v1.TransferConfig\"\242\001\202\323\344\223\002" + + "\202\001\"3/v1/{parent=projects/*/locations/*}/" + + "transferConfigs:\017transfer_configZ:\"\'/v1/" + + "{parent=projects/*}/transferConfigs:\017tra" + + "nsfer_config\332A\026parent,transfer_config\022\333\002" + + "\n\024UpdateTransferConfig\022B.google.cloud.bi" + + "gquery.datatransfer.v1.UpdateTransferCon" + + "figRequest\0325.google.cloud.bigquery.datat" + + "ransfer.v1.TransferConfig\"\307\001\202\323\344\223\002\242\0012C/v1" + + "/{transfer_config.name=projects/*/locati" + + "ons/*/transferConfigs/*}:\017transfer_confi" + + "gZJ27/v1/{transfer_config.name=projects/" + + "*/transferConfigs/*}:\017transfer_config\332A\033" + + "transfer_config,update_mask\022\341\001\n\024DeleteTr" + + "ansferConfig\022B.google.cloud.bigquery.dat" + + "atransfer.v1.DeleteTransferConfigRequest" + + "\032\026.google.protobuf.Empty\"m\202\323\344\223\002`*3/v1/{n" + + "ame=projects/*/locations/*/transferConfi" + + "gs/*}Z)*\'/v1/{name=projects/*/transferCo" + + "nfigs/*}\332A\004name\022\372\001\n\021GetTransferConfig\022?." + + "google.cloud.bigquery.datatransfer.v1.Ge" + + "tTransferConfigRequest\0325.google.cloud.bi" + + "gquery.datatransfer.v1.TransferConfig\"m\202" + + "\323\344\223\002`\0223/v1/{name=projects/*/locations/*/" + + "transferConfigs/*}Z)\022\'/v1/{name=projects" + + "/*/transferConfigs/*}\332A\004name\022\215\002\n\023ListTra" + + "nsferConfigs\022A.google.cloud.bigquery.dat" + + "atransfer.v1.ListTransferConfigsRequest\032" + + "B.google.cloud.bigquery.datatransfer.v1." + + "ListTransferConfigsResponse\"o\202\323\344\223\002`\0223/v1" + + "/{parent=projects/*/locations/*}/transfe" + + "rConfigsZ)\022\'/v1/{parent=projects/*}/tran" + + "sferConfigs\332A\006parent\022\315\002\n\024ScheduleTransfe" + + "rRuns\022B.google.cloud.bigquery.datatransf" + + "er.v1.ScheduleTransferRunsRequest\032C.goog" + + "le.cloud.bigquery.datatransfer.v1.Schedu" + + "leTransferRunsResponse\"\253\001\210\002\001\202\323\344\223\002\204\001\"B/v1" + + "/{parent=projects/*/locations/*/transfer" + + "Configs/*}:scheduleRuns:\001*Z;\"6/v1/{paren" + + "t=projects/*/transferConfigs/*}:schedule" + + "Runs:\001*\332A\032parent,start_time,end_time\022\274\002\n" + + "\027StartManualTransferRuns\022E.google.cloud." + + "bigquery.datatransfer.v1.StartManualTran" + + "sferRunsRequest\032F.google.cloud.bigquery." + + "datatransfer.v1.StartManualTransferRunsR" + + "esponse\"\221\001\202\323\344\223\002\212\001\"E/v1/{parent=projects/" + + "*/locations/*/transferConfigs/*}:startMa" + + "nualRuns:\001*Z>\"9/v1/{parent=projects/*/tr" + + "ansferConfigs/*}:startManualRuns:\001*\022\377\001\n\016" + + "GetTransferRun\022<.google.cloud.bigquery.d" + + "atatransfer.v1.GetTransferRunRequest\0322.g" + + "oogle.cloud.bigquery.datatransfer.v1.Tra" + + "nsferRun\"{\202\323\344\223\002n\022:/v1/{name=projects/*/l" + + "ocations/*/transferConfigs/*/runs/*}Z0\022." + + "/v1/{name=projects/*/transferConfigs/*/r" + + "uns/*}\332A\004name\022\351\001\n\021DeleteTransferRun\022?.go" + + "ogle.cloud.bigquery.datatransfer.v1.Dele" + + "teTransferRunRequest\032\026.google.protobuf.E" + + "mpty\"{\202\323\344\223\002n*:/v1/{name=projects/*/locat" + + "ions/*/transferConfigs/*/runs/*}Z0*./v1/" + + "{name=projects/*/transferConfigs/*/runs/" + + "*}\332A\004name\022\222\002\n\020ListTransferRuns\022>.google." + + "cloud.bigquery.datatransfer.v1.ListTrans" + + "ferRunsRequest\032?.google.cloud.bigquery.d" + + "atatransfer.v1.ListTransferRunsResponse\"" + + "}\202\323\344\223\002n\022:/v1/{parent=projects/*/location" + + "s/*/transferConfigs/*}/runsZ0\022./v1/{pare" + + "nt=projects/*/transferConfigs/*}/runs\332A\006" + + "parent\022\262\002\n\020ListTransferLogs\022>.google.clo" + + "ud.bigquery.datatransfer.v1.ListTransfer" + + "LogsRequest\032?.google.cloud.bigquery.data" + + "transfer.v1.ListTransferLogsResponse\"\234\001\202" + + "\323\344\223\002\214\001\022I/v1/{parent=projects/*/locations" + + "/*/transferConfigs/*/runs/*}/transferLog" + + "sZ?\022=/v1/{parent=projects/*/transferConf" + + "igs/*/runs/*}/transferLogs\332A\006parent\022\236\002\n\017" + + "CheckValidCreds\022=.google.cloud.bigquery." + + "datatransfer.v1.CheckValidCredsRequest\032>" + + ".google.cloud.bigquery.datatransfer.v1.C" + + "heckValidCredsResponse\"\213\001\202\323\344\223\002~\"?/v1/{na" + + "me=projects/*/locations/*/dataSources/*}" + + ":checkValidCreds:\001*Z8\"3/v1/{name=project" + + "s/*/dataSources/*}:checkValidCreds:\001*\332A\004" + + "name\022\332\001\n\021EnrollDataSources\022?.google.clou" + + "d.bigquery.datatransfer.v1.EnrollDataSou" + + "rcesRequest\032\026.google.protobuf.Empty\"l\202\323\344" + + "\223\002f\"3/v1/{name=projects/*/locations/*}:e" + + "nrollDataSources:\001*Z,\"\'/v1/{name=project" + + "s/*}:enrollDataSources:\001*\032W\312A#bigqueryda" + + "tatransfer.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\217\002\n)c" + + "om.google.cloud.bigquery.datatransfer.v1" + + "B\021DataTransferProtoP\001ZQgoogle.golang.org" + + "/genproto/googleapis/cloud/bigquery/data" + + "transfer/v1;datatransfer\252\002%Google.Cloud." + + "BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\" + + "BigQuery\\DataTransfer\\V1\352\002)Google::Cloud" + + "::Bigquery::DataTransfer::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor, + new java.lang.String[] { "ParamId", "DisplayName", "Description", "Type", "Required", "Repeated", "ValidationRegex", "AllowedValues", "MinValue", "MaxValue", "Fields", "ValidationDescription", "ValidationHelpUrl", "Immutable", "Recurse", "Deprecated", }); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor, + new java.lang.String[] { "Name", "DataSourceId", "DisplayName", "Description", "ClientId", "Scopes", "TransferType", "SupportsMultipleTransfers", "UpdateDeadlineSeconds", "DefaultSchedule", "SupportsCustomSchedule", "Parameters", "HelpUrl", "AuthorizationType", "DataRefreshType", "DefaultDataRefreshWindowDays", "ManualRunsDisabled", "MinimumScheduleInterval", }); + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor, + new java.lang.String[] { "DataSources", "NextPageToken", }); + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor, + new java.lang.String[] { "Parent", "TransferConfig", "AuthorizationCode", "VersionInfo", "ServiceAccountName", }); + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor, + new java.lang.String[] { "TransferConfig", "AuthorizationCode", "UpdateMask", "VersionInfo", "ServiceAccountName", }); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "DataSourceIds", "PageToken", "PageSize", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor, + new java.lang.String[] { "TransferConfigs", "NextPageToken", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor, + new java.lang.String[] { "Parent", "States", "PageToken", "PageSize", "RunAttempt", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor, + new java.lang.String[] { "TransferRuns", "NextPageToken", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", "MessageTypes", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor, + new java.lang.String[] { "TransferMessages", "NextPageToken", }); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor, + new java.lang.String[] { "HasValidCreds", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor, + new java.lang.String[] { "Parent", "StartTime", "EndTime", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor, + new java.lang.String[] { "Runs", }); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor, + new java.lang.String[] { "Parent", "RequestedTimeRange", "RequestedRunTime", "Time", }); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor = + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor, + new java.lang.String[] { "StartTime", "EndTime", }); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor, + new java.lang.String[] { "Runs", }); + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor, + new java.lang.String[] { "Name", "DataSourceIds", }); + 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.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java similarity index 61% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java index 4544475ce385..40322c016d86 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to delete data transfer information. All associated transfer runs
  * and log messages will be deleted as well.
@@ -28,61 +11,54 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest}
  */
-public final class DeleteTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteTransferConfigRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest)
     DeleteTransferConfigRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteTransferConfigRequest.newBuilder() to construct.
   private DeleteTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteTransferConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteTransferConfigRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class,
-            com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * - * string 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,33 +67,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * - * string 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 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +111,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 +136,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.datatransfer.v1.DeleteTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other = - (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) 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,105 +164,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest - 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.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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; } /** - * - * *
    * A request to delete data transfer information. All associated transfer runs
    * and log messages will be deleted as well.
@@ -296,33 +261,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest}
    */
-  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.datatransfer.v1.DeleteTransferConfigRequest)
       com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class,
-              com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.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();
@@ -332,16 +297,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest
-          .getDefaultInstance();
+    public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -355,8 +318,7 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest bui
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest result =
-          new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -366,51 +328,46 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest bui
     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.datatransfer.v1.DeleteTransferConfigRequest) {
-        return mergeFrom(
-            (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other) {
-      if (other
-          == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other) {
+      if (other == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -441,19 +398,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              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) {
@@ -466,24 +421,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string 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; @@ -492,25 +443,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string 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 { @@ -518,80 +466,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,43 +536,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTransferConfigRequest 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 DeleteTransferConfigRequest 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; @@ -649,8 +582,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..26f0c30c6edd --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface DeleteTransferConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java similarity index 61% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java index f3217566fe14..063974137990 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java @@ -1,87 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to delete data transfer run information.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest} */ -public final class DeleteTransferRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteTransferRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) DeleteTransferRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteTransferRunRequest.newBuilder() to construct. private DeleteTransferRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteTransferRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteTransferRunRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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 @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,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_); } @@ -161,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.datatransfer.v1.DeleteTransferRunRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other = - (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other = (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) 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,138 +163,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - 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.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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; } /** - * - * *
    * A request to delete data transfer run information.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest} */ - 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.datatransfer.v1.DeleteTransferRunRequest) com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.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(); @@ -330,16 +295,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.getDefaultInstance(); } @java.lang.Override @@ -353,8 +316,7 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest result = - new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest(this); + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest result = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -364,51 +326,46 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest buildP 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.datatransfer.v1.DeleteTransferRunRequest) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -464,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string 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; @@ -490,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string 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 { @@ -516,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,43 +534,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTransferRunRequest 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 DeleteTransferRunRequest 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; @@ -647,8 +580,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java similarity index 50% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java index 2667c68c29f0..e29ce2fde716 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java @@ -1,58 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface DeleteTransferRunRequestOrBuilder - extends +public interface DeleteTransferRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java similarity index 66% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java index 1d1845d0cf52..2012a142e107 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Represents preferences for sending email notifications for transfer run
  * events.
@@ -28,55 +11,51 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EmailPreferences}
  */
-public final class EmailPreferences extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EmailPreferences extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.EmailPreferences)
     EmailPreferencesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EmailPreferences.newBuilder() to construct.
   private EmailPreferences(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private EmailPreferences() {}
+  private EmailPreferences() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EmailPreferences();
   }
 
   @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.datatransfer.v1.TransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class,
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
   }
 
   public static final int ENABLE_FAILURE_EMAIL_FIELD_NUMBER = 1;
   private boolean enableFailureEmail_;
   /**
-   *
-   *
    * 
    * If true, email notifications will be sent on transfer run failures.
    * 
* * bool enable_failure_email = 1; - * * @return The enableFailureEmail. */ @java.lang.Override @@ -85,7 +64,6 @@ public boolean getEnableFailureEmail() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,7 +75,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 (enableFailureEmail_ != false) { output.writeBool(1, enableFailureEmail_); } @@ -111,7 +90,8 @@ public int getSerializedSize() { size = 0; if (enableFailureEmail_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableFailureEmail_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableFailureEmail_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,15 +101,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.datatransfer.v1.EmailPreferences)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other = - (com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) obj; + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other = (com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) obj; - if (getEnableFailureEmail() != other.getEnableFailureEmail()) return false; + if (getEnableFailureEmail() + != other.getEnableFailureEmail()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -142,111 +122,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_FAILURE_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFailureEmail()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableFailureEmail()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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; } /** - * - * *
    * Represents preferences for sending email notifications for transfer run
    * events.
@@ -254,32 +227,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EmailPreferences}
    */
-  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.datatransfer.v1.EmailPreferences)
       com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class,
-              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.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();
@@ -289,9 +263,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
     }
 
     @java.lang.Override
@@ -310,8 +284,7 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.EmailPreferences result =
-          new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(this);
+      com.google.cloud.bigquery.datatransfer.v1.EmailPreferences result = new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(this);
       result.enableFailureEmail_ = enableFailureEmail_;
       onBuilt();
       return result;
@@ -321,39 +294,38 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.EmailPreferences)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -361,8 +333,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance()) return this;
       if (other.getEnableFailureEmail() != false) {
         setEnableFailureEmail(other.getEnableFailureEmail());
       }
@@ -392,19 +363,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                enableFailureEmail_ = input.readBool();
-
-                break;
-              } // case 8
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              enableFailureEmail_ = input.readBool();
+
+              break;
+            } // case 8
+            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) {
@@ -415,16 +384,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean enableFailureEmail_;
+    private boolean enableFailureEmail_ ;
     /**
-     *
-     *
      * 
      * If true, email notifications will be sent on transfer run failures.
      * 
* * bool enable_failure_email = 1; - * * @return The enableFailureEmail. */ @java.lang.Override @@ -432,43 +398,37 @@ public boolean getEnableFailureEmail() { return enableFailureEmail_; } /** - * - * *
      * If true, email notifications will be sent on transfer run failures.
      * 
* * bool enable_failure_email = 1; - * * @param value The enableFailureEmail to set. * @return This builder for chaining. */ public Builder setEnableFailureEmail(boolean value) { - + enableFailureEmail_ = value; onChanged(); return this; } /** - * - * *
      * If true, email notifications will be sent on transfer run failures.
      * 
* * bool enable_failure_email = 1; - * * @return This builder for chaining. */ public Builder clearEnableFailureEmail() { - + enableFailureEmail_ = 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); } @@ -478,12 +438,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.EmailPreferences) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.EmailPreferences) private static final com.google.cloud.bigquery.datatransfer.v1.EmailPreferences DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(); } @@ -492,27 +452,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailPreferences 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 EmailPreferences 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; @@ -527,4 +487,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java new file mode 100644 index 000000000000..d2c4f1dafc1d --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/transfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface EmailPreferencesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.EmailPreferences) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * If true, email notifications will be sent on transfer run failures.
+   * 
+ * + * bool enable_failure_email = 1; + * @return The enableFailureEmail. + */ + boolean getEnableFailureEmail(); +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java similarity index 65% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java index b6e865bb4b69..47e600a3324d 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to enroll a set of data sources so they are visible in the
  * BigQuery UI's `Transfer` tab.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest}
  */
-public final class EnrollDataSourcesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EnrollDataSourcesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest)
     EnrollDataSourcesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EnrollDataSourcesRequest.newBuilder() to construct.
   private EnrollDataSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EnrollDataSourcesRequest() {
     name_ = "";
     dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -45,42 +27,37 @@ private EnrollDataSourcesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EnrollDataSourcesRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class,
-            com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
-   * The name of the project resource in the form:
-   * `projects/{project_id}`
+   * The name of the project resource in the form: `projects/{project_id}`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -89,30 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * The name of the project resource in the form:
-   * `projects/{project_id}`
+   * The name of the project resource in the form: `projects/{project_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 { @@ -123,45 +99,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DATA_SOURCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList dataSourceIds_; /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList + getDataSourceIdsList() { return dataSourceIds_; } /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -169,24 +137,21 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString + getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +163,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_); } @@ -233,16 +199,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.datatransfer.v1.EnrollDataSourcesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other = - (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other = (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getDataSourceIdsList().equals(other.getDataSourceIdsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDataSourceIdsList() + .equals(other.getDataSourceIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,105 +233,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest - 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.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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; } /** - * - * *
    * A request to enroll a set of data sources so they are visible in the
    * BigQuery UI's `Transfer` tab.
@@ -372,33 +330,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest}
    */
-  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.datatransfer.v1.EnrollDataSourcesRequest)
       com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class,
-              com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.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();
@@ -410,16 +368,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest
-          .getDefaultInstance();
+    public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -433,8 +389,7 @@ public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest build(
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest result =
-          new com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest result = new com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -450,51 +405,46 @@ public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest buildP
     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.datatransfer.v1.EnrollDataSourcesRequest) {
-        return mergeFrom(
-            (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other) {
-      if (other
-          == com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other) {
+      if (other == com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -535,26 +485,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureDataSourceIdsIsMutable();
-                dataSourceIds_.add(s);
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureDataSourceIdsIsMutable();
+              dataSourceIds_.add(s);
+              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) {
@@ -564,26 +511,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
-     * The name of the project resource in the form:
-     * `projects/{project_id}`
+     * The name of the project resource in the form: `projects/{project_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; @@ -592,22 +535,20 @@ public java.lang.String getName() { } } /** - * - * *
-     * The name of the project resource in the form:
-     * `projects/{project_id}`
+     * The name of the project resource in the form: `projects/{project_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 { @@ -615,118 +556,98 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * The name of the project resource in the form:
-     * `projects/{project_id}`
+     * The name of the project resource in the form: `projects/{project_id}`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * The name of the project resource in the form:
-     * `projects/{project_id}`
+     * The name of the project resource in the form: `projects/{project_id}`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * The name of the project resource in the form:
-     * `projects/{project_id}`
+     * The name of the project resource in the form: `projects/{project_id}`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList dataSourceIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDataSourceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dataSourceIds_ = new com.google.protobuf.LazyStringArrayList(dataSourceIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList + getDataSourceIdsList() { return dataSourceIds_.getUnmodifiableView(); } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -734,95 +655,85 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString + getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @param index The index to set the value at. * @param value The dataSourceIds to set. * @return This builder for chaining. */ - public Builder setDataSourceIds(int index, java.lang.String value) { + public Builder setDataSourceIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @param value The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIds(java.lang.String value) { + public Builder addDataSourceIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); return this; } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @param values The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addAllDataSourceIds(java.lang.Iterable values) { + public Builder addAllDataSourceIds( + java.lang.Iterable values) { ensureDataSourceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSourceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataSourceIds_); onChanged(); return this; } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @return This builder for chaining. */ public Builder clearDataSourceIds() { @@ -832,31 +743,29 @@ public Builder clearDataSourceIds() { return this; } /** - * - * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; - * * @param value The bytes of the dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value) { + public Builder addDataSourceIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -866,43 +775,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnrollDataSourcesRequest 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 EnrollDataSourcesRequest 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; @@ -914,8 +821,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java similarity index 61% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java index 5b012a197c94..320b761aa833 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java @@ -1,107 +1,74 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface EnrollDataSourcesRequestOrBuilder - extends +public interface EnrollDataSourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The name of the project resource in the form:
-   * `projects/{project_id}`
+   * The name of the project resource in the form: `projects/{project_id}`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
-   * The name of the project resource in the form:
-   * `projects/{project_id}`
+   * The name of the project resource in the form: `projects/{project_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @return A list containing the dataSourceIds. */ - java.util.List getDataSourceIdsList(); + java.util.List + getDataSourceIdsList(); /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @return The count of dataSourceIds. */ int getDataSourceIdsCount(); /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ java.lang.String getDataSourceIds(int index); /** - * - * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - com.google.protobuf.ByteString getDataSourceIdsBytes(int index); + com.google.protobuf.ByteString + getDataSourceIdsBytes(int index); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java similarity index 63% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java index 6bef9817ff89..ad2c478d6250 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java @@ -1,87 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to get data source info.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest} */ -public final class GetDataSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDataSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) GetDataSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDataSourceRequest.newBuilder() to construct. private GetDataSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDataSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDataSourceRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
    * 
* - * - * string 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 @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
    * 
* - * - * string 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 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,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_); } @@ -161,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.datatransfer.v1.GetDataSourceRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest other = - (com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest other = (com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) 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 +163,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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; } /** - * - * *
    * A request to get data source info.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest} */ - 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.datatransfer.v1.GetDataSourceRequest) com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.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 +295,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance(); } @@ -350,8 +316,7 @@ public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest result = - new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest(this); + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -361,39 +326,38 @@ public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -401,9 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -434,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -459,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * - * string 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; @@ -485,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * - * string 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 { @@ -511,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,43 +534,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataSourceRequest 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 GetDataSourceRequest 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; @@ -642,8 +580,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java new file mode 100644 index 000000000000..6b290896067f --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface GetDataSourceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java similarity index 61% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java index a27e91fb9e1b..46d4bc9f4dab 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java @@ -1,87 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to get data transfer information.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest} */ -public final class GetTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetTransferConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) GetTransferConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetTransferConfigRequest.newBuilder() to construct. private GetTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetTransferConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetTransferConfigRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * - * string 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 @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * - * string 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 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,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_); } @@ -161,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.datatransfer.v1.GetTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other = - (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) 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,138 +163,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - 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.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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; } /** - * - * *
    * A request to get data transfer information.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest} */ - 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.datatransfer.v1.GetTransferConfigRequest) com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.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(); @@ -330,16 +295,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -353,8 +316,7 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest result = - new com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest(this); + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -364,51 +326,46 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest buildP 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.datatransfer.v1.GetTransferConfigRequest) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -464,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string 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; @@ -490,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string 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 { @@ -516,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,43 +534,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransferConfigRequest 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 GetTransferConfigRequest 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; @@ -647,8 +580,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..7bb87f9a9a51 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface GetTransferConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java similarity index 63% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java index 293f49cfdc58..2a104ae50f0e 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java @@ -1,87 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to get data transfer run information.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest} */ -public final class GetTransferRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetTransferRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) GetTransferRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetTransferRunRequest.newBuilder() to construct. private GetTransferRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetTransferRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetTransferRunRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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 @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,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_); } @@ -161,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.datatransfer.v1.GetTransferRunRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other = - (com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other = (com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) 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 +163,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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; } /** - * - * *
    * A request to get data transfer run information.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest} */ - 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.datatransfer.v1.GetTransferRunRequest) com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.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 +295,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance(); } @@ -350,8 +316,7 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest result = - new com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest(this); + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -361,50 +326,46 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -460,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string 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; @@ -486,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string 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 { @@ -512,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,43 +534,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransferRunRequest 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 GetTransferRunRequest 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; @@ -643,8 +580,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java similarity index 50% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java index 7fcea891548b..cda83fe6ad35 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java @@ -1,58 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface GetTransferRunRequestOrBuilder - extends +public interface GetTransferRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * - * string 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(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java similarity index 66% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java index 7fef88823299..bbf71e5a9f43 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Request to list supported data sources and their data transfer settings.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest} */ -public final class ListDataSourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDataSourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) ListDataSourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDataSourcesRequest.newBuilder() to construct. private ListDataSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDataSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,45 +26,39 @@ private ListDataSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDataSourcesRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
-   * `projects/{project_id}/locations/{location_id}
+   * `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 @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
-   * `projects/{project_id}/locations/{location_id}
+   * `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 { @@ -128,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -139,7 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -148,15 +119,14 @@ 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; } } /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -166,15 +136,16 @@ public java.lang.String getPageToken() {
    * 
* * 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 { @@ -185,14 +156,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -201,7 +169,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +180,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_); } @@ -239,7 +207,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; @@ -249,17 +218,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.datatransfer.v1.ListDataSourcesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other = - (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,136 +254,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to list supported data sources and their data transfer settings.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest} */ - 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.datatransfer.v1.ListDataSourcesRequest) com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.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(); @@ -426,14 +390,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance(); } @@ -448,8 +411,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest result = - new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -461,50 +423,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest buildPar 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.datatransfer.v1.ListDataSourcesRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -542,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + + 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) { @@ -579,24 +533,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
-     * `projects/{project_id}/locations/{location_id}
+     * `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; @@ -605,25 +555,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
-     * `projects/{project_id}/locations/{location_id}
+     * `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 { @@ -631,73 +578,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
-     * `projects/{project_id}/locations/{location_id}
+     * `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
-     * `projects/{project_id}/locations/{location_id}
+     * `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
-     * `projects/{project_id}/locations/{location_id}
+     * `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -705,8 +639,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -716,13 +648,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -731,8 +663,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -742,14 +672,15 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -757,8 +688,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -768,22 +697,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -793,18 +720,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -814,31 +738,28 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -846,43 +767,37 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,43 +807,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataSourcesRequest 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 ListDataSourcesRequest 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; @@ -940,8 +853,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java similarity index 60% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java index 29fdac4397c9..303969ebfaca 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListDataSourcesRequestOrBuilder - extends +public interface ListDataSourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
-   * `projects/{project_id}/locations/{location_id}
+   * `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. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
-   * `projects/{project_id}/locations/{location_id}
+   * `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(); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -68,13 +41,10 @@ public interface ListDataSourcesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -84,20 +54,17 @@ public interface ListDataSourcesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java similarity index 72% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java index b80b87ee41b3..b08dbdd38178 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Returns list of supported data sources and their metadata.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse} */ -public final class ListDataSourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDataSourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) ListDataSourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDataSourcesResponse.newBuilder() to construct. private ListDataSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDataSourcesResponse() { dataSources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,35 +26,32 @@ private ListDataSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDataSourcesResponse(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); } public static final int DATA_SOURCES_FIELD_NUMBER = 1; private java.util.List dataSources_; /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
@@ -84,8 +63,6 @@ public java.util.List getD return dataSources_; } /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
@@ -93,13 +70,11 @@ public java.util.List getD * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDataSourcesOrBuilderList() { return dataSources_; } /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
@@ -111,8 +86,6 @@ public int getDataSourcesCount() { return dataSources_.size(); } /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSources(int i return dataSources_.get(index); } /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
@@ -141,8 +112,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -151,7 +120,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +128,14 @@ 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; } } /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -177,15 +144,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -194,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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 { for (int i = 0; i < dataSources_.size(); i++) { output.writeMessage(1, dataSources_.get(i)); } @@ -223,7 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataSources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dataSources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -236,16 +205,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.datatransfer.v1.ListDataSourcesResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other = - (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) obj; - if (!getDataSourcesList().equals(other.getDataSourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDataSourcesList() + .equals(other.getDataSourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,138 +239,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse - 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.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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; } /** - * - * *
    * Returns list of supported data sources and their metadata.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse} */ - 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.datatransfer.v1.ListDataSourcesResponse) com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.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(); @@ -417,14 +378,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance(); } @@ -439,8 +399,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse result = - new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse(this); int from_bitField0_ = bitField0_; if (dataSourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -460,50 +419,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse buildPa 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.datatransfer.v1.ListDataSourcesResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance()) return this; if (dataSourcesBuilder_ == null) { if (!other.dataSources_.isEmpty()) { if (dataSources_.isEmpty()) { @@ -522,10 +477,9 @@ public Builder mergeFrom( dataSourcesBuilder_ = null; dataSources_ = other.dataSources_; bitField0_ = (bitField0_ & ~0x00000001); - dataSourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataSourcesFieldBuilder() - : null; + dataSourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataSourcesFieldBuilder() : null; } else { dataSourcesBuilder_.addAllMessages(other.dataSources_); } @@ -561,33 +515,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.datatransfer.v1.DataSource m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSource.parser(), - extensionRegistry); - if (dataSourcesBuilder_ == null) { - ensureDataSourcesIsMutable(); - dataSources_.add(m); - } else { - dataSourcesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.bigquery.datatransfer.v1.DataSource m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.DataSource.parser(), + extensionRegistry); + if (dataSourcesBuilder_ == null) { + ensureDataSourcesIsMutable(); + dataSources_.add(m); + } else { + dataSourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -597,38 +548,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List dataSources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDataSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataSources_ = - new java.util.ArrayList( - dataSources_); + dataSources_ = new java.util.ArrayList(dataSources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSource, - com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> - dataSourcesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.DataSource, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> dataSourcesBuilder_; /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - public java.util.List - getDataSourcesList() { + public java.util.List getDataSourcesList() { if (dataSourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataSources_); } else { @@ -636,8 +577,6 @@ private void ensureDataSourcesIsMutable() { } } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -652,8 +591,6 @@ public int getDataSourcesCount() { } } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -668,8 +605,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSources(int i } } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -691,8 +626,6 @@ public Builder setDataSources( return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -711,8 +644,6 @@ public Builder setDataSources( return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -733,8 +664,6 @@ public Builder addDataSources(com.google.cloud.bigquery.datatransfer.v1.DataSour return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -756,8 +685,6 @@ public Builder addDataSources( return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -776,8 +703,6 @@ public Builder addDataSources( return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -796,8 +721,6 @@ public Builder addDataSources( return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -808,7 +731,8 @@ public Builder addAllDataSources( java.lang.Iterable values) { if (dataSourcesBuilder_ == null) { ensureDataSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataSources_); onChanged(); } else { dataSourcesBuilder_.addAllMessages(values); @@ -816,8 +740,6 @@ public Builder addAllDataSources( return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -835,8 +757,6 @@ public Builder clearDataSources() { return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -854,8 +774,6 @@ public Builder removeDataSources(int index) { return this; } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -867,8 +785,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder getDataSourc return getDataSourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -878,22 +794,19 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder getDataSourc public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBuilder( int index) { if (dataSourcesBuilder_ == null) { - return dataSources_.get(index); - } else { + return dataSources_.get(index); } else { return dataSourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - public java.util.List - getDataSourcesOrBuilderList() { + public java.util.List + getDataSourcesOrBuilderList() { if (dataSourcesBuilder_ != null) { return dataSourcesBuilder_.getMessageOrBuilderList(); } else { @@ -901,8 +814,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour } } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -910,12 +821,10 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourcesBuilder() { - return getDataSourcesFieldBuilder() - .addBuilder(com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); + return getDataSourcesFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
@@ -924,36 +833,30 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourc */ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourcesBuilder( int index) { - return getDataSourcesFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); + return getDataSourcesFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); } /** - * - * *
      * List of supported data sources and their transfer settings.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - public java.util.List - getDataSourcesBuilderList() { + public java.util.List + getDataSourcesBuilderList() { return getDataSourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSource, - com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.DataSource, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> getDataSourcesFieldBuilder() { if (dataSourcesBuilder_ == null) { - dataSourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSource, - com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, - com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder>( - dataSources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataSourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.DataSource, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder>( + dataSources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); dataSources_ = null; } return dataSourcesBuilder_; @@ -961,8 +864,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourc private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -971,13 +872,13 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourc
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -986,8 +887,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -996,14 +895,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1011,8 +911,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1021,22 +919,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1045,18 +941,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1065,23 +958,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1091,43 +984,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataSourcesResponse 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 ListDataSourcesResponse 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; @@ -1139,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java similarity index 73% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java index f5ef7d291b48..f63cdcc83df5 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListDataSourcesResponseOrBuilder - extends +public interface ListDataSourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - java.util.List getDataSourcesList(); + java.util.List + getDataSourcesList(); /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
@@ -44,8 +25,6 @@ public interface ListDataSourcesResponseOrBuilder */ com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSources(int index); /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
@@ -54,30 +33,25 @@ public interface ListDataSourcesResponseOrBuilder */ int getDataSourcesCount(); /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - java.util.List + java.util.List getDataSourcesOrBuilderList(); /** - * - * *
    * List of supported data sources and their transfer settings.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBuilder(int index); + com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBuilder( + int index); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -86,13 +60,10 @@ public interface ListDataSourcesResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -101,8 +72,8 @@ public interface ListDataSourcesResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java similarity index 67% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java index b7cce6e029b5..8ad3e4020298 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to list data transfers configured for a BigQuery project.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest} */ -public final class ListTransferConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTransferConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) ListTransferConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTransferConfigsRequest.newBuilder() to construct. private ListTransferConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTransferConfigsRequest() { parent_ = ""; dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,45 +27,39 @@ private ListTransferConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTransferConfigsRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The BigQuery project id for which data sources
+   * Required. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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 @@ -92,33 +68,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * Required. The BigQuery project id for which data sources
+   * Required. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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,42 +103,34 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATA_SOURCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList dataSourceIds_; /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList + getDataSourceIdsList() { return dataSourceIds_; } /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -172,26 +138,22 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString + getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -201,7 +163,6 @@ public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -210,15 +171,14 @@ 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; } } /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -228,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -247,14 +208,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -263,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +232,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_); } @@ -312,7 +270,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; @@ -322,18 +281,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.datatransfer.v1.ListTransferConfigsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other = - (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDataSourceIdsList().equals(other.getDataSourceIdsList())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getDataSourceIdsList() + .equals(other.getDataSourceIdsList())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -361,138 +323,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - 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.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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; } /** - * - * *
    * A request to list data transfers configured for a BigQuery project.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest} */ - 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.datatransfer.v1.ListTransferConfigsRequest) com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.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(); @@ -508,16 +461,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.getDefaultInstance(); } @java.lang.Override @@ -531,8 +482,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buil @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest result = - new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -550,51 +500,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buil 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.datatransfer.v1.ListTransferConfigsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -642,38 +587,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDataSourceIdsIsMutable(); - dataSourceIds_.add(s); - break; - } // case 18 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataSourceIdsIsMutable(); + dataSourceIds_.add(s); + break; + } // case 18 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -683,29 +623,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The BigQuery project id for which data sources
+     * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `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; @@ -714,25 +649,22 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The BigQuery project id for which data sources
+     * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `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 { @@ -740,124 +672,101 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The BigQuery project id for which data sources
+     * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The BigQuery project id for which data sources
+     * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * Required. The BigQuery project id for which data sources
+     * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList dataSourceIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDataSourceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dataSourceIds_ = new com.google.protobuf.LazyStringArrayList(dataSourceIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList + getDataSourceIdsList() { return dataSourceIds_.getUnmodifiableView(); } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -865,90 +774,80 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString + getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @param index The index to set the value at. * @param value The dataSourceIds to set. * @return This builder for chaining. */ - public Builder setDataSourceIds(int index, java.lang.String value) { + public Builder setDataSourceIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @param value The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIds(java.lang.String value) { + public Builder addDataSourceIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); return this; } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @param values The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addAllDataSourceIds(java.lang.Iterable values) { + public Builder addAllDataSourceIds( + java.lang.Iterable values) { ensureDataSourceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSourceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataSourceIds_); onChanged(); return this; } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @return This builder for chaining. */ public Builder clearDataSourceIds() { @@ -958,22 +857,20 @@ public Builder clearDataSourceIds() { return this; } /** - * - * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; - * * @param value The bytes of the dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value) { + public Builder addDataSourceIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); @@ -982,8 +879,6 @@ public Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -993,13 +888,13 @@ public Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1008,8 +903,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -1019,14 +912,15 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -1034,8 +928,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -1045,22 +937,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -1070,18 +960,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -1091,31 +978,28 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1123,43 +1007,37 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1169,43 +1047,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferConfigsRequest 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 ListTransferConfigsRequest 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; @@ -1217,8 +1093,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java similarity index 67% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java index 6a243ddc4915..d77254800f75 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java @@ -1,115 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferConfigsRequestOrBuilder - extends +public interface ListTransferConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The BigQuery project id for which data sources
+   * Required. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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. The BigQuery project id for which data sources
+   * Required. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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(); /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @return A list containing the dataSourceIds. */ - java.util.List getDataSourceIdsList(); + java.util.List + getDataSourceIdsList(); /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @return The count of dataSourceIds. */ int getDataSourceIdsCount(); /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ java.lang.String getDataSourceIds(int index); /** - * - * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - com.google.protobuf.ByteString getDataSourceIdsBytes(int index); + com.google.protobuf.ByteString + getDataSourceIdsBytes(int index); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -119,13 +82,10 @@ public interface ListTransferConfigsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -135,20 +95,17 @@ public interface ListTransferConfigsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java similarity index 62% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java index 38757c402973..7a7e2a1fe40b 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * The returned list of pipelines in the project.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse} */ -public final class ListTransferConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTransferConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) ListTransferConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTransferConfigsResponse.newBuilder() to construct. private ListTransferConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTransferConfigsResponse() { transferConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,116 +26,92 @@ private ListTransferConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTransferConfigsResponse(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); } public static final int TRANSFER_CONFIGS_FIELD_NUMBER = 1; private java.util.List transferConfigs_; /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getTransferConfigsList() { + public java.util.List getTransferConfigsList() { return transferConfigs_; } /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getTransferConfigsOrBuilderList() { return transferConfigs_; } /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getTransferConfigsCount() { return transferConfigs_.size(); } /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfigs(int index) { return transferConfigs_.get(index); } /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder - getTransferConfigsOrBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigsOrBuilder( + int index) { return transferConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -162,7 +120,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -171,15 +128,14 @@ 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; } } /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -188,15 +144,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -205,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,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 { for (int i = 0; i < transferConfigs_.size(); i++) { output.writeMessage(1, transferConfigs_.get(i)); } @@ -234,7 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < transferConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transferConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, transferConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -247,16 +205,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.datatransfer.v1.ListTransferConfigsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other = - (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) obj; - if (!getTransferConfigsList().equals(other.getTransferConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTransferConfigsList() + .equals(other.getTransferConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,138 +239,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - 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.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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 returned list of pipelines in the project.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse} */ - 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.datatransfer.v1.ListTransferConfigsResponse) com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.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(); @@ -428,16 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -451,8 +399,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse bui @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse result = - new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse(this); int from_bitField0_ = bitField0_; if (transferConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -472,51 +419,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse bui 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.datatransfer.v1.ListTransferConfigsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.getDefaultInstance()) return this; if (transferConfigsBuilder_ == null) { if (!other.transferConfigs_.isEmpty()) { if (transferConfigs_.isEmpty()) { @@ -535,10 +477,9 @@ public Builder mergeFrom( transferConfigsBuilder_ = null; transferConfigs_ = other.transferConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - transferConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTransferConfigsFieldBuilder() - : null; + transferConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTransferConfigsFieldBuilder() : null; } else { transferConfigsBuilder_.addAllMessages(other.transferConfigs_); } @@ -574,33 +515,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.datatransfer.v1.TransferConfig m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.parser(), - extensionRegistry); - if (transferConfigsBuilder_ == null) { - ensureTransferConfigsIsMutable(); - transferConfigs_.add(m); - } else { - transferConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.bigquery.datatransfer.v1.TransferConfig m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.parser(), + extensionRegistry); + if (transferConfigsBuilder_ == null) { + ensureTransferConfigsIsMutable(); + transferConfigs_.add(m); + } else { + transferConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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,40 +548,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - transferConfigs_ = java.util.Collections.emptyList(); - + private java.util.List transferConfigs_ = + java.util.Collections.emptyList(); private void ensureTransferConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - transferConfigs_ = - new java.util.ArrayList( - transferConfigs_); + transferConfigs_ = new java.util.ArrayList(transferConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> - transferConfigsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> transferConfigsBuilder_; /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTransferConfigsList() { + public java.util.List getTransferConfigsList() { if (transferConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(transferConfigs_); } else { @@ -651,15 +577,11 @@ private void ensureTransferConfigsIsMutable() { } } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getTransferConfigsCount() { if (transferConfigsBuilder_ == null) { @@ -669,15 +591,11 @@ public int getTransferConfigsCount() { } } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfigs(int index) { if (transferConfigsBuilder_ == null) { @@ -687,15 +605,11 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi } } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTransferConfigs( int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { @@ -712,19 +626,14 @@ public Builder setTransferConfigs( return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTransferConfigs( - int index, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { if (transferConfigsBuilder_ == null) { ensureTransferConfigsIsMutable(); transferConfigs_.set(index, builderForValue.build()); @@ -735,18 +644,13 @@ public Builder setTransferConfigs( return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addTransferConfigs( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder addTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -760,15 +664,11 @@ public Builder addTransferConfigs( return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferConfigs( int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { @@ -785,15 +685,11 @@ public Builder addTransferConfigs( return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferConfigs( com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { @@ -807,19 +703,14 @@ public Builder addTransferConfigs( return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferConfigs( - int index, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { if (transferConfigsBuilder_ == null) { ensureTransferConfigsIsMutable(); transferConfigs_.add(index, builderForValue.build()); @@ -830,22 +721,18 @@ public Builder addTransferConfigs( return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllTransferConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (transferConfigsBuilder_ == null) { ensureTransferConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transferConfigs_); onChanged(); } else { transferConfigsBuilder_.addAllMessages(values); @@ -853,15 +740,11 @@ public Builder addAllTransferConfigs( return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTransferConfigs() { if (transferConfigsBuilder_ == null) { @@ -874,15 +757,11 @@ public Builder clearTransferConfigs() { return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeTransferConfigs(int index) { if (transferConfigsBuilder_ == null) { @@ -895,53 +774,39 @@ public Builder removeTransferConfigs(int index) { return this; } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder - getTransferConfigsBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder getTransferConfigsBuilder( + int index) { return getTransferConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder - getTransferConfigsOrBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigsOrBuilder( + int index) { if (transferConfigsBuilder_ == null) { - return transferConfigs_.get(index); - } else { + return transferConfigs_.get(index); } else { return transferConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> - getTransferConfigsOrBuilderList() { + public java.util.List + getTransferConfigsOrBuilderList() { if (transferConfigsBuilder_ != null) { return transferConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -949,66 +814,45 @@ public Builder removeTransferConfigs(int index) { } } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder - addTransferConfigsBuilder() { - return getTransferConfigsFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder addTransferConfigsBuilder() { + return getTransferConfigsFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder - addTransferConfigsBuilder(int index) { - return getTransferConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder addTransferConfigsBuilder( + int index) { + return getTransferConfigsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); } /** - * - * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTransferConfigsBuilderList() { + public java.util.List + getTransferConfigsBuilderList() { return getTransferConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> getTransferConfigsFieldBuilder() { if (transferConfigsBuilder_ == null) { - transferConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( + transferConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( transferConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1020,8 +864,6 @@ public Builder removeTransferConfigs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1030,13 +872,13 @@ public Builder removeTransferConfigs(int index) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1045,8 +887,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1055,14 +895,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1070,8 +911,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1080,22 +919,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1104,18 +941,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1124,23 +958,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,43 +984,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferConfigsResponse 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 ListTransferConfigsResponse 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; @@ -1198,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java similarity index 55% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java index 240543423d9e..2f8dac08da6c 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java @@ -1,94 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferConfigsResponseOrBuilder - extends +public interface ListTransferConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getTransferConfigsList(); + java.util.List + getTransferConfigsList(); /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfigs(int index); /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getTransferConfigsCount(); /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getTransferConfigsOrBuilderList(); /** - * - * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigsOrBuilder( int index); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -97,13 +60,10 @@ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferCon
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -112,8 +72,8 @@ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferCon
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java similarity index 65% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java index b86988729b37..b8cb4c4f0ab6 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to get user facing log messages associated with data transfer run.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest} */ -public final class ListTransferLogsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTransferLogsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) ListTransferLogsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTransferLogsRequest.newBuilder() to construct. private ListTransferLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTransferLogsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,45 +27,39 @@ private ListTransferLogsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTransferLogsRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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 @@ -92,33 +68,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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,8 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -140,7 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -149,15 +120,14 @@ 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; } } /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -167,15 +137,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @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 { @@ -186,14 +157,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_; /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -204,58 +172,36 @@ public int getPageSize() { public static final int MESSAGE_TYPES_FIELD_NUMBER = 6; private java.util.List messageTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity> - messageTypes_converter_ = + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity> messageTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>() { - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity - convert(java.lang.Integer from) { + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>() { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf( - from); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity - .UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(from); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; } }; /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return A list containing the messageTypes. */ @java.lang.Override - public java.util.List - getMessageTypesList() { + public java.util.List getMessageTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>( - messageTypes_, messageTypes_converter_); + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>(messageTypes_, messageTypes_converter_); } /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return The count of messageTypes. */ @java.lang.Override @@ -263,55 +209,40 @@ public int getMessageTypesCount() { return messageTypes_.size(); } /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index of the element to return. * @return The messageTypes at the given index. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes(int index) { return messageTypes_converter_.convert(messageTypes_.get(index)); } /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return A list containing the enum numeric values on the wire for messageTypes. */ @java.lang.Override - public java.util.List getMessageTypesValueList() { + public java.util.List + getMessageTypesValueList() { return messageTypes_; } /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of messageTypes at the given index. */ @@ -319,11 +250,9 @@ public java.util.List getMessageTypesValueList() { public int getMessageTypesValue(int index) { return messageTypes_.get(index); } - private int messageTypesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -369,20 +299,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pageSize_); } { int dataSize = 0; for (int i = 0; i < messageTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(messageTypes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(messageTypes_.get(i)); } size += dataSize; - if (!getMessageTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - messageTypesMemoizedSerializedSize = dataSize; + if (!getMessageTypesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }messageTypesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -392,17 +322,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.datatransfer.v1.ListTransferLogsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other = - (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!messageTypes_.equals(other.messageTypes_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -431,138 +363,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest - 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.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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; } /** - * - * *
    * A request to get user facing log messages associated with data transfer run.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest} */ - 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.datatransfer.v1.ListTransferLogsRequest) com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.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(); @@ -578,14 +501,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance(); } @@ -600,8 +522,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest result = - new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.pageToken_ = pageToken_; @@ -619,50 +540,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest buildPa 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.datatransfer.v1.ListTransferLogsRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -710,50 +627,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 34: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 40: - { - pageSize_ = input.readInt32(); + break; + } // case 34 + case 40: { + pageSize_ = input.readInt32(); - break; - } // case 40 - case 48: - { + break; + } // case 40 + case 48: { + int tmpRaw = input.readEnum(); + ensureMessageTypesIsMutable(); + messageTypes_.add(tmpRaw); + break; + } // case 48 + case 50: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureMessageTypesIsMutable(); messageTypes_.add(tmpRaw); - break; - } // case 48 - case 50: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureMessageTypesIsMutable(); - messageTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 50 + 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) { @@ -763,29 +674,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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; @@ -794,25 +700,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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 { @@ -820,73 +723,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -894,8 +784,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -905,13 +793,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 4; - * * @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; @@ -920,8 +808,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -931,14 +817,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @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 { @@ -946,8 +833,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -957,22 +842,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -982,18 +865,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -1003,31 +883,28 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -1035,43 +912,37 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 5; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 5; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - private java.util.List messageTypes_ = java.util.Collections.emptyList(); - + private java.util.List messageTypes_ = + java.util.Collections.emptyList(); private void ensureMessageTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messageTypes_ = new java.util.ArrayList(messageTypes_); @@ -1079,81 +950,56 @@ private void ensureMessageTypesIsMutable() { } } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return A list containing the messageTypes. */ - public java.util.List - getMessageTypesList() { + public java.util.List getMessageTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>( - messageTypes_, messageTypes_converter_); + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>(messageTypes_, messageTypes_converter_); } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return The count of messageTypes. */ public int getMessageTypesCount() { return messageTypes_.size(); } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index of the element to return. * @return The messageTypes at the given index. */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity - getMessageTypes(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes(int index) { return messageTypes_converter_.convert(messageTypes_.get(index)); } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index to set the value at. * @param value The messageTypes to set. * @return This builder for chaining. */ public Builder setMessageTypes( - int index, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { + int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { if (value == null) { throw new NullPointerException(); } @@ -1163,22 +1009,16 @@ public Builder setMessageTypes( return this; } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param value The messageTypes to add. * @return This builder for chaining. */ - public Builder addMessageTypes( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { + public Builder addMessageTypes(com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { if (value == null) { throw new NullPointerException(); } @@ -1188,44 +1028,31 @@ public Builder addMessageTypes( return this; } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param values The messageTypes to add. * @return This builder for chaining. */ public Builder addAllMessageTypes( - java.lang.Iterable< - ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity> - values) { + java.lang.Iterable values) { ensureMessageTypesIsMutable(); - for (com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value : - values) { + for (com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value : values) { messageTypes_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return This builder for chaining. */ public Builder clearMessageTypes() { @@ -1235,34 +1062,25 @@ public Builder clearMessageTypes() { return this; } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return A list containing the enum numeric values on the wire for messageTypes. */ - public java.util.List getMessageTypesValueList() { + public java.util.List + getMessageTypesValueList() { return java.util.Collections.unmodifiableList(messageTypes_); } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of messageTypes at the given index. */ @@ -1270,39 +1088,30 @@ public int getMessageTypesValue(int index) { return messageTypes_.get(index); } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index to set the value at. * @param value The enum numeric value on the wire for messageTypes to set. * @return This builder for chaining. */ - public Builder setMessageTypesValue(int index, int value) { + public Builder setMessageTypesValue( + int index, int value) { ensureMessageTypesIsMutable(); messageTypes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param value The enum numeric value on the wire for messageTypes to add. * @return This builder for chaining. */ @@ -1313,21 +1122,17 @@ public Builder addMessageTypesValue(int value) { return this; } /** - * - * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param values The enum numeric values on the wire for messageTypes to add. * @return This builder for chaining. */ - public Builder addAllMessageTypesValue(java.lang.Iterable values) { + public Builder addAllMessageTypesValue( + java.lang.Iterable values) { ensureMessageTypesIsMutable(); for (int value : values) { messageTypes_.add(value); @@ -1335,9 +1140,9 @@ public Builder addAllMessageTypesValue(java.lang.Iterable val 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); } @@ -1347,43 +1152,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferLogsRequest 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 ListTransferLogsRequest 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; @@ -1395,8 +1198,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java similarity index 62% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java index f0ad9084fa7b..1479f6622381 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferLogsRequestOrBuilder - extends +public interface ListTransferLogsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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(); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -68,13 +41,10 @@ public interface ListTransferLogsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -84,99 +54,70 @@ public interface ListTransferLogsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 5; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return A list containing the messageTypes. */ - java.util.List - getMessageTypesList(); + java.util.List getMessageTypesList(); /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return The count of messageTypes. */ int getMessageTypesCount(); /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index of the element to return. * @return The messageTypes at the given index. */ - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes( - int index); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes(int index); /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @return A list containing the enum numeric values on the wire for messageTypes. */ - java.util.List getMessageTypesValueList(); + java.util.List + getMessageTypesValueList(); /** - * - * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; - * - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of messageTypes at the given index. */ diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java similarity index 62% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java index 4c8fdaf47553..fd58b90fdf10 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * The returned list transfer run messages.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse} */ -public final class ListTransferLogsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTransferLogsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) ListTransferLogsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTransferLogsResponse.newBuilder() to construct. private ListTransferLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTransferLogsResponse() { transferMessages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,118 +26,92 @@ private ListTransferLogsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTransferLogsResponse(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); } public static final int TRANSFER_MESSAGES_FIELD_NUMBER = 1; - private java.util.List - transferMessages_; + private java.util.List transferMessages_; /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getTransferMessagesList() { + public java.util.List getTransferMessagesList() { return transferMessages_; } /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> + public java.util.List getTransferMessagesOrBuilderList() { return transferMessages_; } /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getTransferMessagesCount() { return transferMessages_.size(); } /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index) { return transferMessages_.get(index); } /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder - getTransferMessagesOrBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMessagesOrBuilder( + int index) { return transferMessages_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -164,7 +120,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMess
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -173,15 +128,14 @@ 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; } } /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -190,15 +144,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -207,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,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 { for (int i = 0; i < transferMessages_.size(); i++) { output.writeMessage(1, transferMessages_.get(i)); } @@ -236,7 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < transferMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transferMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, transferMessages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -249,16 +205,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.datatransfer.v1.ListTransferLogsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other = - (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) obj; - if (!getTransferMessagesList().equals(other.getTransferMessagesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTransferMessagesList() + .equals(other.getTransferMessagesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,138 +239,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - 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.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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 returned list transfer run messages.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse} */ - 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.datatransfer.v1.ListTransferLogsResponse) com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.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(); @@ -430,16 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.getDefaultInstance(); } @java.lang.Override @@ -453,8 +399,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse result = - new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse(this); int from_bitField0_ = bitField0_; if (transferMessagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -474,51 +419,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse buildP 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.datatransfer.v1.ListTransferLogsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.getDefaultInstance()) return this; if (transferMessagesBuilder_ == null) { if (!other.transferMessages_.isEmpty()) { if (transferMessages_.isEmpty()) { @@ -537,10 +477,9 @@ public Builder mergeFrom( transferMessagesBuilder_ = null; transferMessages_ = other.transferMessages_; bitField0_ = (bitField0_ & ~0x00000001); - transferMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTransferMessagesFieldBuilder() - : null; + transferMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTransferMessagesFieldBuilder() : null; } else { transferMessagesBuilder_.addAllMessages(other.transferMessages_); } @@ -576,33 +515,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.datatransfer.v1.TransferMessage m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.parser(), - extensionRegistry); - if (transferMessagesBuilder_ == null) { - ensureTransferMessagesIsMutable(); - transferMessages_.add(m); - } else { - transferMessagesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.bigquery.datatransfer.v1.TransferMessage m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.parser(), + extensionRegistry); + if (transferMessagesBuilder_ == null) { + ensureTransferMessagesIsMutable(); + transferMessages_.add(m); + } else { + transferMessagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -612,40 +548,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - transferMessages_ = java.util.Collections.emptyList(); - + private java.util.List transferMessages_ = + java.util.Collections.emptyList(); private void ensureTransferMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - transferMessages_ = - new java.util.ArrayList( - transferMessages_); + transferMessages_ = new java.util.ArrayList(transferMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferMessage, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> - transferMessagesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> transferMessagesBuilder_; /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTransferMessagesList() { + public java.util.List getTransferMessagesList() { if (transferMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(transferMessages_); } else { @@ -653,15 +577,11 @@ private void ensureTransferMessagesIsMutable() { } } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getTransferMessagesCount() { if (transferMessagesBuilder_ == null) { @@ -671,18 +591,13 @@ public int getTransferMessagesCount() { } } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index) { if (transferMessagesBuilder_ == null) { return transferMessages_.get(index); } else { @@ -690,15 +605,11 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMess } } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTransferMessages( int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { @@ -715,19 +626,14 @@ public Builder setTransferMessages( return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTransferMessages( - int index, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { if (transferMessagesBuilder_ == null) { ensureTransferMessagesIsMutable(); transferMessages_.set(index, builderForValue.build()); @@ -738,18 +644,13 @@ public Builder setTransferMessages( return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addTransferMessages( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { + public Builder addTransferMessages(com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { if (transferMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -763,15 +664,11 @@ public Builder addTransferMessages( return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferMessages( int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { @@ -788,15 +685,11 @@ public Builder addTransferMessages( return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferMessages( com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { @@ -810,19 +703,14 @@ public Builder addTransferMessages( return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferMessages( - int index, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { + int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { if (transferMessagesBuilder_ == null) { ensureTransferMessagesIsMutable(); transferMessages_.add(index, builderForValue.build()); @@ -833,22 +721,18 @@ public Builder addTransferMessages( return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllTransferMessages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (transferMessagesBuilder_ == null) { ensureTransferMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transferMessages_); onChanged(); } else { transferMessagesBuilder_.addAllMessages(values); @@ -856,15 +740,11 @@ public Builder addAllTransferMessages( return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTransferMessages() { if (transferMessagesBuilder_ == null) { @@ -877,15 +757,11 @@ public Builder clearTransferMessages() { return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeTransferMessages(int index) { if (transferMessagesBuilder_ == null) { @@ -898,53 +774,39 @@ public Builder removeTransferMessages(int index) { return this; } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder - getTransferMessagesBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder getTransferMessagesBuilder( + int index) { return getTransferMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder - getTransferMessagesOrBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMessagesOrBuilder( + int index) { if (transferMessagesBuilder_ == null) { - return transferMessages_.get(index); - } else { + return transferMessages_.get(index); } else { return transferMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> - getTransferMessagesOrBuilderList() { + public java.util.List + getTransferMessagesOrBuilderList() { if (transferMessagesBuilder_ != null) { return transferMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -952,67 +814,45 @@ public Builder removeTransferMessages(int index) { } } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder - addTransferMessagesBuilder() { - return getTransferMessagesFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder addTransferMessagesBuilder() { + return getTransferMessagesFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder - addTransferMessagesBuilder(int index) { - return getTransferMessagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder addTransferMessagesBuilder( + int index) { + return getTransferMessagesFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); } /** - * - * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTransferMessagesBuilderList() { + public java.util.List + getTransferMessagesBuilderList() { return getTransferMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferMessage, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferMessage, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> getTransferMessagesFieldBuilder() { if (transferMessagesBuilder_ == null) { - transferMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferMessage, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder>( + transferMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferMessage, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder>( transferMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1024,8 +864,6 @@ public Builder removeTransferMessages(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1034,13 +872,13 @@ public Builder removeTransferMessages(int index) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1049,8 +887,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1059,14 +895,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1074,8 +911,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1084,22 +919,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1108,18 +941,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1128,23 +958,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1154,43 +984,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferLogsResponse 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 ListTransferLogsResponse 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; @@ -1202,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java similarity index 55% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java index 6fe5a15990e2..1026cf1a9a54 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java @@ -1,95 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferLogsResponseOrBuilder - extends +public interface ListTransferLogsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getTransferMessagesList(); /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index); /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getTransferMessagesCount(); /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getTransferMessagesOrBuilderList(); /** - * - * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMessagesOrBuilder( int index); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -98,13 +60,10 @@ com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMe
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -113,8 +72,8 @@ com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMe
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java similarity index 69% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java index d041b42ab524..5e96b3dc6dcb 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to list data transfer runs.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest} */ -public final class ListTransferRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTransferRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) ListTransferRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTransferRunsRequest.newBuilder() to construct. private ListTransferRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTransferRunsRequest() { parent_ = ""; states_ = java.util.Collections.emptyList(); @@ -46,43 +28,39 @@ private ListTransferRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTransferRunsRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); } /** - * - * *
    * Represents which runs should be pulled.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt} */ - public enum RunAttempt implements com.google.protobuf.ProtocolMessageEnum { + public enum RunAttempt + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * All runs should be returned.
      * 
@@ -91,8 +69,6 @@ public enum RunAttempt implements com.google.protobuf.ProtocolMessageEnum { */ RUN_ATTEMPT_UNSPECIFIED(0), /** - * - * *
      * Only latest run per day should be returned.
      * 
@@ -104,8 +80,6 @@ public enum RunAttempt implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * All runs should be returned.
      * 
@@ -114,8 +88,6 @@ public enum RunAttempt implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUN_ATTEMPT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Only latest run per day should be returned.
      * 
@@ -124,6 +96,7 @@ public enum RunAttempt implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LATEST_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -148,49 +121,48 @@ public static RunAttempt valueOf(int value) { */ public static RunAttempt forNumber(int value) { switch (value) { - case 0: - return RUN_ATTEMPT_UNSPECIFIED; - case 1: - return LATEST; - default: - return null; + case 0: return RUN_ATTEMPT_UNSPECIFIED; + case 1: return LATEST; + 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< + RunAttempt> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RunAttempt findValueByNumber(int number) { + return RunAttempt.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RunAttempt findValueByNumber(int number) { - return RunAttempt.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.datatransfer.v1.ListTransferRunsRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDescriptor().getEnumTypes().get(0); } private static final RunAttempt[] VALUES = values(); - public static RunAttempt valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RunAttempt 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; @@ -210,8 +182,6 @@ private RunAttempt(int value) { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -219,10 +189,7 @@ private RunAttempt(int value) {
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 @@ -231,15 +198,14 @@ 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. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -247,18 +213,17 @@ public java.lang.String getParent() {
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 { @@ -269,46 +234,34 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int STATES_FIELD_NUMBER = 2; private java.util.List states_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState> - states_converter_ = + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState> states_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>() { - public com.google.cloud.bigquery.datatransfer.v1.TransferState convert( - java.lang.Integer from) { + public com.google.cloud.bigquery.datatransfer.v1.TransferState convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = - com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(from); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(from); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } }; /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return A list containing the states. */ @java.lang.Override public java.util.List getStatesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>( - states_, states_converter_); + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>(states_, states_converter_); } /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return The count of states. */ @java.lang.Override @@ -316,14 +269,11 @@ public int getStatesCount() { return states_.size(); } /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index of the element to return. * @return The states at the given index. */ @@ -332,29 +282,24 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferState getStates(int ind return states_converter_.convert(states_.get(index)); } /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return A list containing the enum numeric values on the wire for states. */ @java.lang.Override - public java.util.List getStatesValueList() { + public java.util.List + getStatesValueList() { return states_; } /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of states at the given index. */ @@ -362,14 +307,11 @@ public java.util.List getStatesValueList() { public int getStatesValue(int index) { return states_.get(index); } - private int statesMemoizedSerializedSize; public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -379,7 +321,6 @@ public int getStatesValue(int index) {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -388,15 +329,14 @@ 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; } } /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -406,15 +346,16 @@ public java.lang.String getPageToken() {
    * 
* * 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 { @@ -425,14 +366,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -443,49 +381,31 @@ public int getPageSize() { public static final int RUN_ATTEMPT_FIELD_NUMBER = 5; private int runAttempt_; /** - * - * *
    * Indicates how run attempts are to be pulled.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @return The enum numeric value on the wire for runAttempt. */ - @java.lang.Override - public int getRunAttemptValue() { + @java.lang.Override public int getRunAttemptValue() { return runAttempt_; } /** - * - * *
    * Indicates how run attempts are to be pulled.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @return The runAttempt. */ - @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt - getRunAttempt() { + @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf( - runAttempt_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf(runAttempt_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -497,7 +417,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -515,10 +436,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } - if (runAttempt_ - != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt - .RUN_ATTEMPT_UNSPECIFIED - .getNumber()) { + if (runAttempt_ != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.RUN_ATTEMPT_UNSPECIFIED.getNumber()) { output.writeEnum(5, runAttempt_); } getUnknownFields().writeTo(output); @@ -536,26 +454,25 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < states_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(states_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(states_.get(i)); } size += dataSize; - if (!getStatesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - statesMemoizedSerializedSize = dataSize; + if (!getStatesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }statesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { 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_); } - if (runAttempt_ - != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt - .RUN_ATTEMPT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, runAttempt_); + if (runAttempt_ != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.RUN_ATTEMPT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, runAttempt_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -565,18 +482,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.datatransfer.v1.ListTransferRunsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other = - (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!states_.equals(other.states_)) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (runAttempt_ != other.runAttempt_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -607,138 +526,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest - 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.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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; } /** - * - * *
    * A request to list data transfer runs.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest} */ - 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.datatransfer.v1.ListTransferRunsRequest) com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.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(); @@ -756,14 +666,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance(); } @@ -778,8 +687,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest result = - new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -798,50 +706,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest buildPa 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.datatransfer.v1.ListTransferRunsRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -892,56 +796,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + ensureStatesIsMutable(); + states_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureStatesIsMutable(); states_.add(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureStatesIsMutable(); - states_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - - break; - } // case 32 - case 40: - { - runAttempt_ = input.readEnum(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 40: { + runAttempt_ = input.readEnum(); + + break; + } // case 40 + 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) { @@ -951,13 +848,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -965,16 +859,14 @@ public Builder mergeFrom(
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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; @@ -983,8 +875,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -992,17 +882,16 @@ public java.lang.String getParent() {
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 { @@ -1010,8 +899,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -1019,25 +906,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -1045,21 +928,16 @@ public Builder setParent(java.lang.String value) {
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -1067,26 +945,24 @@ public Builder clearParent() {
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private java.util.List states_ = java.util.Collections.emptyList(); - + private java.util.List states_ = + java.util.Collections.emptyList(); private void ensureStatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { states_ = new java.util.ArrayList(states_); @@ -1094,44 +970,34 @@ private void ensureStatesIsMutable() { } } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return A list containing the states. */ public java.util.List getStatesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>( - states_, states_converter_); + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>(states_, states_converter_); } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return The count of states. */ public int getStatesCount() { return states_.size(); } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index of the element to return. * @return The states at the given index. */ @@ -1139,14 +1005,11 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferState getStates(int ind return states_converter_.convert(states_.get(index)); } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index to set the value at. * @param value The states to set. * @return This builder for chaining. @@ -1162,14 +1025,11 @@ public Builder setStates( return this; } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param value The states to add. * @return This builder for chaining. */ @@ -1183,20 +1043,16 @@ public Builder addStates(com.google.cloud.bigquery.datatransfer.v1.TransferState return this; } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param values The states to add. * @return This builder for chaining. */ public Builder addAllStates( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureStatesIsMutable(); for (com.google.cloud.bigquery.datatransfer.v1.TransferState value : values) { states_.add(value.getNumber()); @@ -1205,14 +1061,11 @@ public Builder addAllStates( return this; } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return This builder for chaining. */ public Builder clearStates() { @@ -1222,28 +1075,23 @@ public Builder clearStates() { return this; } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return A list containing the enum numeric values on the wire for states. */ - public java.util.List getStatesValueList() { + public java.util.List + getStatesValueList() { return java.util.Collections.unmodifiableList(states_); } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of states at the given index. */ @@ -1251,33 +1099,28 @@ public int getStatesValue(int index) { return states_.get(index); } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index to set the value at. * @param value The enum numeric value on the wire for states to set. * @return This builder for chaining. */ - public Builder setStatesValue(int index, int value) { + public Builder setStatesValue( + int index, int value) { ensureStatesIsMutable(); states_.set(index, value); onChanged(); return this; } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param value The enum numeric value on the wire for states to add. * @return This builder for chaining. */ @@ -1288,18 +1131,16 @@ public Builder addStatesValue(int value) { return this; } /** - * - * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param values The enum numeric values on the wire for states to add. * @return This builder for chaining. */ - public Builder addAllStatesValue(java.lang.Iterable values) { + public Builder addAllStatesValue( + java.lang.Iterable values) { ensureStatesIsMutable(); for (int value : values) { states_.add(value); @@ -1310,8 +1151,6 @@ public Builder addAllStatesValue(java.lang.Iterable values) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1321,13 +1160,13 @@ public Builder addAllStatesValue(java.lang.Iterable values) {
      * 
* * 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; @@ -1336,8 +1175,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1347,14 +1184,15 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -1362,8 +1200,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1373,22 +1209,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1398,18 +1232,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1419,31 +1250,28 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1451,36 +1279,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1488,113 +1310,80 @@ public Builder clearPageSize() { private int runAttempt_ = 0; /** - * - * *
      * Indicates how run attempts are to be pulled.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @return The enum numeric value on the wire for runAttempt. */ - @java.lang.Override - public int getRunAttemptValue() { + @java.lang.Override public int getRunAttemptValue() { return runAttempt_; } /** - * - * *
      * Indicates how run attempts are to be pulled.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @param value The enum numeric value on the wire for runAttempt to set. * @return This builder for chaining. */ public Builder setRunAttemptValue(int value) { - + runAttempt_ = value; onChanged(); return this; } /** - * - * *
      * Indicates how run attempts are to be pulled.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @return The runAttempt. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt - getRunAttempt() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf( - runAttempt_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt - .UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf(runAttempt_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED : result; } /** - * - * *
      * Indicates how run attempts are to be pulled.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @param value The runAttempt to set. * @return This builder for chaining. */ - public Builder setRunAttempt( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt value) { + public Builder setRunAttempt(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt value) { if (value == null) { throw new NullPointerException(); } - + runAttempt_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates how run attempts are to be pulled.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @return This builder for chaining. */ public Builder clearRunAttempt() { - + runAttempt_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1604,43 +1393,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferRunsRequest 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 ListTransferRunsRequest 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; @@ -1652,8 +1439,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java similarity index 73% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java index b199e947930b..0c0a598e7020 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferRunsRequestOrBuilder - extends +public interface ListTransferRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -33,16 +15,11 @@ public interface ListTransferRunsRequestOrBuilder
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -50,80 +27,62 @@ public interface ListTransferRunsRequestOrBuilder
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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(); /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return A list containing the states. */ java.util.List getStatesList(); /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return The count of states. */ int getStatesCount(); /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index of the element to return. * @return The states at the given index. */ com.google.cloud.bigquery.datatransfer.v1.TransferState getStates(int index); /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @return A list containing the enum numeric values on the wire for states. */ - java.util.List getStatesValueList(); + java.util.List + getStatesValueList(); /** - * - * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of states at the given index. */ int getStatesValue(int index); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -133,13 +92,10 @@ public interface ListTransferRunsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -149,49 +105,36 @@ public interface ListTransferRunsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Indicates how run attempts are to be pulled.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @return The enum numeric value on the wire for runAttempt. */ int getRunAttemptValue(); /** - * - * *
    * Indicates how run attempts are to be pulled.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; - * - * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; * @return The runAttempt. */ com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt(); diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java similarity index 63% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java index ecaed6f618a5..433c170e5911 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * The returned list of pipelines in the project.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse} */ -public final class ListTransferRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTransferRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) ListTransferRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTransferRunsResponse.newBuilder() to construct. private ListTransferRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTransferRunsResponse() { transferRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,104 +26,82 @@ private ListTransferRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTransferRunsResponse(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); } public static final int TRANSFER_RUNS_FIELD_NUMBER = 1; private java.util.List transferRuns_; /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getTransferRunsList() { + public java.util.List getTransferRunsList() { return transferRuns_; } /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getTransferRunsOrBuilderList() { return transferRuns_; } /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getTransferRunsCount() { return transferRuns_.size(); } /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int index) { return transferRuns_.get(index); } /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOrBuilder( @@ -152,8 +112,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransfe public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -162,7 +120,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransfe
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -171,15 +128,14 @@ 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; } } /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -188,15 +144,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -205,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,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 { for (int i = 0; i < transferRuns_.size(); i++) { output.writeMessage(1, transferRuns_.get(i)); } @@ -234,7 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < transferRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transferRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, transferRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -247,16 +205,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.datatransfer.v1.ListTransferRunsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other = - (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) obj; - if (!getTransferRunsList().equals(other.getTransferRunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTransferRunsList() + .equals(other.getTransferRunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,138 +239,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - 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.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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 returned list of pipelines in the project.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse} */ - 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.datatransfer.v1.ListTransferRunsResponse) com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.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(); @@ -428,16 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.getDefaultInstance(); } @java.lang.Override @@ -451,8 +399,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse result = - new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse(this); int from_bitField0_ = bitField0_; if (transferRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -472,51 +419,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse buildP 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.datatransfer.v1.ListTransferRunsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.getDefaultInstance()) return this; if (transferRunsBuilder_ == null) { if (!other.transferRuns_.isEmpty()) { if (transferRuns_.isEmpty()) { @@ -535,10 +477,9 @@ public Builder mergeFrom( transferRunsBuilder_ = null; transferRuns_ = other.transferRuns_; bitField0_ = (bitField0_ & ~0x00000001); - transferRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTransferRunsFieldBuilder() - : null; + transferRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTransferRunsFieldBuilder() : null; } else { transferRunsBuilder_.addAllMessages(other.transferRuns_); } @@ -574,33 +515,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.datatransfer.v1.TransferRun m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), - extensionRegistry); - if (transferRunsBuilder_ == null) { - ensureTransferRunsIsMutable(); - transferRuns_.add(m); - } else { - transferRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.bigquery.datatransfer.v1.TransferRun m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), + extensionRegistry); + if (transferRunsBuilder_ == null) { + ensureTransferRunsIsMutable(); + transferRuns_.add(m); + } else { + transferRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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,40 +548,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List transferRuns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTransferRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - transferRuns_ = - new java.util.ArrayList( - transferRuns_); + transferRuns_ = new java.util.ArrayList(transferRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> - transferRunsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> transferRunsBuilder_; /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTransferRunsList() { + public java.util.List getTransferRunsList() { if (transferRunsBuilder_ == null) { return java.util.Collections.unmodifiableList(transferRuns_); } else { @@ -651,15 +577,11 @@ private void ensureTransferRunsIsMutable() { } } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getTransferRunsCount() { if (transferRunsBuilder_ == null) { @@ -669,15 +591,11 @@ public int getTransferRunsCount() { } } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int index) { if (transferRunsBuilder_ == null) { @@ -687,15 +605,11 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int } } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { @@ -712,15 +626,11 @@ public Builder setTransferRuns( return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder builderForValue) { @@ -734,15 +644,11 @@ public Builder setTransferRuns( return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferRuns(com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (transferRunsBuilder_ == null) { @@ -758,15 +664,11 @@ public Builder addTransferRuns(com.google.cloud.bigquery.datatransfer.v1.Transfe return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { @@ -783,15 +685,11 @@ public Builder addTransferRuns( return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferRuns( com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder builderForValue) { @@ -805,15 +703,11 @@ public Builder addTransferRuns( return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder builderForValue) { @@ -827,22 +721,18 @@ public Builder addTransferRuns( return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllTransferRuns( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (transferRunsBuilder_ == null) { ensureTransferRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transferRuns_); onChanged(); } else { transferRunsBuilder_.addAllMessages(values); @@ -850,15 +740,11 @@ public Builder addAllTransferRuns( return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTransferRuns() { if (transferRunsBuilder_ == null) { @@ -871,15 +757,11 @@ public Builder clearTransferRuns() { return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeTransferRuns(int index) { if (transferRunsBuilder_ == null) { @@ -892,52 +774,39 @@ public Builder removeTransferRuns(int index) { return this; } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getTransferRunsBuilder( int index) { return getTransferRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOrBuilder( int index) { if (transferRunsBuilder_ == null) { - return transferRuns_.get(index); - } else { + return transferRuns_.get(index); } else { return transferRunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTransferRunsOrBuilderList() { + public java.util.List + getTransferRunsOrBuilderList() { if (transferRunsBuilder_ != null) { return transferRunsBuilder_.getMessageOrBuilderList(); } else { @@ -945,65 +814,49 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransfe } } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransferRunsBuilder() { - return getTransferRunsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getTransferRunsFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransferRunsBuilder( int index) { - return getTransferRunsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getTransferRunsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** - * - * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTransferRunsBuilderList() { + public java.util.List + getTransferRunsBuilderList() { return getTransferRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> getTransferRunsFieldBuilder() { if (transferRunsBuilder_ == null) { - transferRunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( - transferRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + transferRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( + transferRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); transferRuns_ = null; } return transferRunsBuilder_; @@ -1011,8 +864,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransfer private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1021,13 +872,13 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransfer
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1036,8 +887,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1046,14 +895,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1061,8 +911,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1071,22 +919,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1095,18 +941,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -1115,23 +958,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1141,43 +984,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferRunsResponse 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 ListTransferRunsResponse 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; @@ -1189,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java similarity index 54% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java index c333984709d9..49765127fac9 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java @@ -1,94 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferRunsResponseOrBuilder - extends +public interface ListTransferRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getTransferRunsList(); + java.util.List + getTransferRunsList(); /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int index); /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getTransferRunsCount(); /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getTransferRunsOrBuilderList(); /** - * - * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOrBuilder( int index); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -97,13 +60,10 @@ com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOr
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -112,8 +72,8 @@ com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOr
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java similarity index 100% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java similarity index 100% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java new file mode 100644 index 000000000000..fe959179b7ee --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java @@ -0,0 +1,371 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datatransfer.v1; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RunName implements ResourceName { + private static final PathTemplate PROJECT_TRANSFER_CONFIG_RUN = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/transferConfigs/{transfer_config}/runs/{run}"); + private static final PathTemplate PROJECT_LOCATION_TRANSFER_CONFIG_RUN = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String transferConfig; + private final String run; + private final String location; + + @Deprecated + protected RunName() { + project = null; + transferConfig = null; + run = null; + location = null; + } + + private RunName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); + run = Preconditions.checkNotNull(builder.getRun()); + location = null; + pathTemplate = PROJECT_TRANSFER_CONFIG_RUN; + } + + private RunName(ProjectLocationTransferConfigRunBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); + run = Preconditions.checkNotNull(builder.getRun()); + pathTemplate = PROJECT_LOCATION_TRANSFER_CONFIG_RUN; + } + + public String getProject() { + return project; + } + + public String getTransferConfig() { + return transferConfig; + } + + public String getRun() { + return run; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectTransferConfigRunBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationTransferConfigRunBuilder + newProjectLocationTransferConfigRunBuilder() { + return new ProjectLocationTransferConfigRunBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RunName of(String project, String transferConfig, String run) { + return newBuilder().setProject(project).setTransferConfig(transferConfig).setRun(run).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static RunName ofProjectTransferConfigRunName( + String project, String transferConfig, String run) { + return newBuilder().setProject(project).setTransferConfig(transferConfig).setRun(run).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static RunName ofProjectLocationTransferConfigRunName( + String project, String location, String transferConfig, String run) { + return newProjectLocationTransferConfigRunBuilder() + .setProject(project) + .setLocation(location) + .setTransferConfig(transferConfig) + .setRun(run) + .build(); + } + + public static String format(String project, String transferConfig, String run) { + return newBuilder() + .setProject(project) + .setTransferConfig(transferConfig) + .setRun(run) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectTransferConfigRunName( + String project, String transferConfig, String run) { + return newBuilder() + .setProject(project) + .setTransferConfig(transferConfig) + .setRun(run) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationTransferConfigRunName( + String project, String location, String transferConfig, String run) { + return newProjectLocationTransferConfigRunBuilder() + .setProject(project) + .setLocation(location) + .setTransferConfig(transferConfig) + .setRun(run) + .build() + .toString(); + } + + public static RunName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_TRANSFER_CONFIG_RUN.matches(formattedString)) { + Map matchMap = PROJECT_TRANSFER_CONFIG_RUN.match(formattedString); + return ofProjectTransferConfigRunName( + matchMap.get("project"), matchMap.get("transfer_config"), matchMap.get("run")); + } else if (PROJECT_LOCATION_TRANSFER_CONFIG_RUN.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_TRANSFER_CONFIG_RUN.match(formattedString); + return ofProjectLocationTransferConfigRunName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("transfer_config"), + matchMap.get("run")); + } + throw new ValidationException("RunName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RunName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_TRANSFER_CONFIG_RUN.matches(formattedString) + || PROJECT_LOCATION_TRANSFER_CONFIG_RUN.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (transferConfig != null) { + fieldMapBuilder.put("transfer_config", transferConfig); + } + if (run != null) { + fieldMapBuilder.put("run", run); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + RunName that = ((RunName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.transferConfig, that.transferConfig) + && Objects.equals(this.run, that.run) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(transferConfig); + h *= 1000003; + h ^= Objects.hashCode(run); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/transferConfigs/{transfer_config}/runs/{run}. */ + public static class Builder { + private String project; + private String transferConfig; + private String run; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getTransferConfig() { + return transferConfig; + } + + public String getRun() { + return run; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTransferConfig(String transferConfig) { + this.transferConfig = transferConfig; + return this; + } + + public Builder setRun(String run) { + this.run = run; + return this; + } + + private Builder(RunName runName) { + Preconditions.checkArgument( + Objects.equals(runName.pathTemplate, PROJECT_TRANSFER_CONFIG_RUN), + "toBuilder is only supported when RunName has the pattern of projects/{project}/transferConfigs/{transfer_config}/runs/{run}"); + this.project = runName.project; + this.transferConfig = runName.transferConfig; + this.run = runName.run; + } + + public RunName build() { + return new RunName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationTransferConfigRunBuilder { + private String project; + private String location; + private String transferConfig; + private String run; + + protected ProjectLocationTransferConfigRunBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTransferConfig() { + return transferConfig; + } + + public String getRun() { + return run; + } + + public ProjectLocationTransferConfigRunBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationTransferConfigRunBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationTransferConfigRunBuilder setTransferConfig(String transferConfig) { + this.transferConfig = transferConfig; + return this; + } + + public ProjectLocationTransferConfigRunBuilder setRun(String run) { + this.run = run; + return this; + } + + public RunName build() { + return new RunName(this); + } + } +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java similarity index 76% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java index 8a7021658b62..9009d4d6104f 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java @@ -1,75 +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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Options customizing the data transfer schedule.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleOptions} */ -public final class ScheduleOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScheduleOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ScheduleOptions) ScheduleOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScheduleOptions.newBuilder() to construct. private ScheduleOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ScheduleOptions() {} + private ScheduleOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScheduleOptions(); } @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.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); } public static final int DISABLE_AUTO_SCHEDULING_FIELD_NUMBER = 3; private boolean disableAutoScheduling_; /** - * - * *
    * If true, automatic scheduling of data transfer runs for this configuration
    * will be disabled. The runs can be started on ad-hoc basis using
@@ -78,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool disable_auto_scheduling = 3; - * * @return The disableAutoScheduling. */ @java.lang.Override @@ -89,8 +68,6 @@ public boolean getDisableAutoScheduling() { public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -100,7 +77,6 @@ public boolean getDisableAutoScheduling() {
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -108,8 +84,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -119,7 +93,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -127,8 +100,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -147,8 +118,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp endTime_;
   /**
-   *
-   *
    * 
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -157,7 +126,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -165,8 +133,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -175,7 +141,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -183,8 +148,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -200,7 +163,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,7 +174,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 (startTime_ != null) {
       output.writeMessage(1, getStartTime());
     }
@@ -232,13 +195,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStartTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getEndTime());
     }
     if (disableAutoScheduling_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disableAutoScheduling_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(3, disableAutoScheduling_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -248,22 +214,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.datatransfer.v1.ScheduleOptions)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions other =
-        (com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) obj;
+    com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions other = (com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) obj;
 
-    if (getDisableAutoScheduling() != other.getDisableAutoScheduling()) return false;
+    if (getDisableAutoScheduling()
+        != other.getDisableAutoScheduling()) return false;
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime().equals(other.getStartTime())) return false;
+      if (!getStartTime()
+          .equals(other.getStartTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -277,7 +245,8 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + DISABLE_AUTO_SCHEDULING_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAutoScheduling());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getDisableAutoScheduling());
     if (hasStartTime()) {
       hash = (37 * hash) + START_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getStartTime().hashCode();
@@ -292,136 +261,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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;
   }
   /**
-   *
-   *
    * 
    * Options customizing the data transfer schedule.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleOptions} */ - 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.datatransfer.v1.ScheduleOptions) com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.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(); @@ -443,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; } @java.lang.Override @@ -464,8 +426,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions result = - new com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions(this); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions(this); result.disableAutoScheduling_ = disableAutoScheduling_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -485,39 +446,38 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions)other); } else { super.mergeFrom(other); return this; @@ -525,8 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance()) return this; if (other.getDisableAutoScheduling() != false) { setDisableAutoScheduling(other.getDisableAutoScheduling()); } @@ -562,31 +521,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 24: - { - disableAutoScheduling_ = input.readBool(); + break; + } // case 18 + case 24: { + disableAutoScheduling_ = input.readBool(); - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + 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) { @@ -597,10 +556,8 @@ public Builder mergeFrom( return this; } - private boolean disableAutoScheduling_; + private boolean disableAutoScheduling_ ; /** - * - * *
      * If true, automatic scheduling of data transfer runs for this configuration
      * will be disabled. The runs can be started on ad-hoc basis using
@@ -609,7 +566,6 @@ public Builder mergeFrom(
      * 
* * bool disable_auto_scheduling = 3; - * * @return The disableAutoScheduling. */ @java.lang.Override @@ -617,8 +573,6 @@ public boolean getDisableAutoScheduling() { return disableAutoScheduling_; } /** - * - * *
      * If true, automatic scheduling of data transfer runs for this configuration
      * will be disabled. The runs can be started on ad-hoc basis using
@@ -627,19 +581,16 @@ public boolean getDisableAutoScheduling() {
      * 
* * bool disable_auto_scheduling = 3; - * * @param value The disableAutoScheduling to set. * @return This builder for chaining. */ public Builder setDisableAutoScheduling(boolean value) { - + disableAutoScheduling_ = value; onChanged(); return this; } /** - * - * *
      * If true, automatic scheduling of data transfer runs for this configuration
      * will be disabled. The runs can be started on ad-hoc basis using
@@ -648,11 +599,10 @@ public Builder setDisableAutoScheduling(boolean value) {
      * 
* * bool disable_auto_scheduling = 3; - * * @return This builder for chaining. */ public Builder clearDisableAutoScheduling() { - + disableAutoScheduling_ = false; onChanged(); return this; @@ -660,13 +610,8 @@ public Builder clearDisableAutoScheduling() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -676,15 +621,12 @@ public Builder clearDisableAutoScheduling() {
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -694,7 +636,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -705,8 +646,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -731,8 +670,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -743,7 +680,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 1;
      */
-    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -754,8 +692,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -770,7 +706,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -782,8 +718,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -806,8 +740,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -819,13 +751,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -840,12 +770,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -857,17 +786,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -875,13 +801,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        endTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
     /**
-     *
-     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -890,15 +811,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -907,7 +825,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -918,8 +835,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -943,8 +858,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -954,7 +867,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -965,8 +879,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -980,7 +892,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -992,8 +904,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -1015,8 +925,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -1027,13 +935,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -1047,12 +953,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -1063,24 +968,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1090,12 +992,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ScheduleOptions)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleOptions)
   private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions();
   }
@@ -1104,27 +1006,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ScheduleOptions 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 ScheduleOptions 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;
@@ -1139,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
similarity index 82%
rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
index 00e752beafcf..a3fe3f843226 100644
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
+++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.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/datatransfer/v1/transfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
-public interface ScheduleOptionsOrBuilder
-    extends
+public interface ScheduleOptionsOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ScheduleOptions)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If true, automatic scheduling of data transfer runs for this configuration
    * will be disabled. The runs can be started on ad-hoc basis using
@@ -34,14 +16,11 @@ public interface ScheduleOptionsOrBuilder
    * 
* * bool disable_auto_scheduling = 3; - * * @return The disableAutoScheduling. */ boolean getDisableAutoScheduling(); /** - * - * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -51,13 +30,10 @@ public interface ScheduleOptionsOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -67,13 +43,10 @@ public interface ScheduleOptionsOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -87,8 +60,6 @@ public interface ScheduleOptionsOrBuilder
   com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -97,13 +68,10 @@ public interface ScheduleOptionsOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -112,13 +80,10 @@ public interface ScheduleOptionsOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
similarity index 67%
rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
index d218de745c34..1022d43b5fbe 100644
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
+++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
@@ -1,87 +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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
- *
- *
  * 
  * A request to schedule transfer runs for a time range.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest} */ -public final class ScheduleTransferRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScheduleTransferRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) ScheduleTransferRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScheduleTransferRunsRequest.newBuilder() to construct. private ScheduleTransferRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScheduleTransferRunsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScheduleTransferRunsRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 @@ -90,33 +66,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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,16 +101,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -144,16 +114,12 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ @java.lang.Override @@ -161,15 +127,12 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -179,15 +142,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -195,15 +155,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The endTime. */ @java.lang.Override @@ -211,8 +168,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
@@ -226,7 +181,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -238,7 +192,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_);
     }
@@ -261,10 +216,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getStartTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,22 +231,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.datatransfer.v1.ScheduleTransferRunsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other =
-        (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) obj;
+    com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime().equals(other.getStartTime())) return false;
+      if (!getStartTime()
+          .equals(other.getStartTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -318,138 +277,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest
-      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.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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;
   }
   /**
-   *
-   *
    * 
    * A request to schedule transfer runs for a time range.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest} */ - 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.datatransfer.v1.ScheduleTransferRunsRequest) com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.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(); @@ -471,16 +421,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.getDefaultInstance(); } @java.lang.Override @@ -494,8 +442,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest bui @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest result = - new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest(this); result.parent_ = parent_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -515,51 +462,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest bui 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.datatransfer.v1.ScheduleTransferRunsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,31 +538,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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,24 +575,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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; @@ -659,25 +597,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 { @@ -685,73 +620,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -759,37 +681,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -800,15 +711,12 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -824,17 +732,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -845,21 +751,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -871,15 +774,12 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -893,62 +793,51 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -956,37 +845,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -997,15 +875,12 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1021,17 +896,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1042,21 +915,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1068,15 +938,12 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1090,69 +957,58 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @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); } @@ -1162,43 +1018,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScheduleTransferRunsRequest 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 ScheduleTransferRunsRequest 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; @@ -1210,8 +1064,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java similarity index 68% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java index 8ba1245e6a8e..7354580d5300 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java @@ -1,131 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ScheduleTransferRunsRequestOrBuilder - extends +public interface ScheduleTransferRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
similarity index 68%
rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
index 14d4c1903d18..6088e635d59a 100644
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
+++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
@@ -1,77 +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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
- *
- *
  * 
  * A response to schedule transfer runs for a time range.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse} */ -public final class ScheduleTransferRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScheduleTransferRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) ScheduleTransferRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScheduleTransferRunsResponse.newBuilder() to construct. private ScheduleTransferRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScheduleTransferRunsResponse() { runs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScheduleTransferRunsResponse(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); } public static final int RUNS_FIELD_NUMBER = 1; private java.util.List runs_; /** - * - * *
    * The transfer runs that were scheduled.
    * 
@@ -83,8 +62,6 @@ public java.util.List get return runs_; } /** - * - * *
    * The transfer runs that were scheduled.
    * 
@@ -92,13 +69,11 @@ public java.util.List get * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRunsOrBuilderList() { return runs_; } /** - * - * *
    * The transfer runs that were scheduled.
    * 
@@ -110,8 +85,6 @@ public int getRunsCount() { return runs_.size(); } /** - * - * *
    * The transfer runs that were scheduled.
    * 
@@ -123,8 +96,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) return runs_.get(index); } /** - * - * *
    * The transfer runs that were scheduled.
    * 
@@ -138,7 +109,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < runs_.size(); i++) { output.writeMessage(1, runs_.get(i)); } @@ -164,7 +135,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, runs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,15 +146,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.datatransfer.v1.ScheduleTransferRunsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other = - (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) obj; - if (!getRunsList().equals(other.getRunsList())) return false; + if (!getRunsList() + .equals(other.getRunsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,138 +176,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - 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.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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; } /** - * - * *
    * A response to schedule transfer runs for a time range.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse} */ - 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.datatransfer.v1.ScheduleTransferRunsResponse) com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.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(); @@ -350,22 +313,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse build() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = - buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -374,8 +334,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse bu @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = - new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse(this); int from_bitField0_ = bitField0_; if (runsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -394,51 +353,46 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse bu 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.datatransfer.v1.ScheduleTransferRunsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.getDefaultInstance()) return this; if (runsBuilder_ == null) { if (!other.runs_.isEmpty()) { if (runs_.isEmpty()) { @@ -457,10 +411,9 @@ public Builder mergeFrom( runsBuilder_ = null; runs_ = other.runs_; bitField0_ = (bitField0_ & ~0x00000001); - runsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRunsFieldBuilder() - : null; + runsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRunsFieldBuilder() : null; } else { runsBuilder_.addAllMessages(other.runs_); } @@ -492,27 +445,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.datatransfer.v1.TransferRun m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), - extensionRegistry); - if (runsBuilder_ == null) { - ensureRunsIsMutable(); - runs_.add(m); - } else { - runsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.bigquery.datatransfer.v1.TransferRun m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), + extensionRegistry); + if (runsBuilder_ == null) { + ensureRunsIsMutable(); + runs_.add(m); + } else { + runsBuilder_.addMessage(m); + } + 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) { @@ -522,29 +473,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List runs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runs_ = - new java.util.ArrayList(runs_); + runs_ = new java.util.ArrayList(runs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> - runsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> runsBuilder_; /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -559,8 +502,6 @@ public java.util.List get } } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -575,8 +516,6 @@ public int getRunsCount() { } } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -591,15 +530,14 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) } } /** - * - * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder setRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder setRuns( + int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -613,8 +551,6 @@ public Builder setRuns(int index, com.google.cloud.bigquery.datatransfer.v1.Tran return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -633,8 +569,6 @@ public Builder setRuns( return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -655,15 +589,14 @@ public Builder addRuns(com.google.cloud.bigquery.datatransfer.v1.TransferRun val return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder addRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder addRuns( + int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -677,8 +610,6 @@ public Builder addRuns(int index, com.google.cloud.bigquery.datatransfer.v1.Tran return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -697,8 +628,6 @@ public Builder addRuns( return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -717,8 +646,6 @@ public Builder addRuns( return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -726,11 +653,11 @@ public Builder addRuns( * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public Builder addAllRuns( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (runsBuilder_ == null) { ensureRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, runs_); onChanged(); } else { runsBuilder_.addAllMessages(values); @@ -738,8 +665,6 @@ public Builder addAllRuns( return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -757,8 +682,6 @@ public Builder clearRuns() { return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -776,20 +699,17 @@ public Builder removeRuns(int index) { return this; } /** - * - * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder( + int index) { return getRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -799,22 +719,19 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuil public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( int index) { if (runsBuilder_ == null) { - return runs_.get(index); - } else { + return runs_.get(index); } else { return runsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsOrBuilderList() { + public java.util.List + getRunsOrBuilderList() { if (runsBuilder_ != null) { return runsBuilder_.getMessageOrBuilderList(); } else { @@ -822,8 +739,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } } /** - * - * *
      * The transfer runs that were scheduled.
      * 
@@ -831,56 +746,49 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder() { - return getRunsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getRunsFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** - * - * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder(int index) { - return getRunsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder( + int index) { + return getRunsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** - * - * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsBuilderList() { + public java.util.List + getRunsBuilderList() { return getRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> getRunsFieldBuilder() { if (runsBuilder_ == null) { - runsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( - runs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + runsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( + runs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); runs_ = null; } return runsBuilder_; } - @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); } @@ -890,43 +798,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScheduleTransferRunsResponse 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 ScheduleTransferRunsResponse 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; @@ -938,8 +844,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java similarity index 65% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java index 1fe6660c2e9d..7377b4671083 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ScheduleTransferRunsResponseOrBuilder - extends +public interface ScheduleTransferRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The transfer runs that were scheduled.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List getRunsList(); + java.util.List + getRunsList(); /** - * - * *
    * The transfer runs that were scheduled.
    * 
@@ -44,8 +25,6 @@ public interface ScheduleTransferRunsResponseOrBuilder */ com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index); /** - * - * *
    * The transfer runs that were scheduled.
    * 
@@ -54,24 +33,21 @@ public interface ScheduleTransferRunsResponseOrBuilder */ int getRunsCount(); /** - * - * *
    * The transfer runs that were scheduled.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List + java.util.List getRunsOrBuilderList(); /** - * - * *
    * The transfer runs that were scheduled.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder(int index); + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( + int index); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java similarity index 66% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java index 9ac68ad626e1..3d9cb946239a 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java @@ -1,81 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * A request to start manual transfer runs.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest} */ -public final class StartManualTransferRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartManualTransferRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) StartManualTransferRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartManualTransferRunsRequest.newBuilder() to construct. - private StartManualTransferRunsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StartManualTransferRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartManualTransferRunsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartManualTransferRunsRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder.class); } - public interface TimeRangeOrBuilder - extends + public interface TimeRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -84,13 +61,10 @@ public interface TimeRangeOrBuilder
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -99,13 +73,10 @@ public interface TimeRangeOrBuilder
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -118,8 +89,6 @@ public interface TimeRangeOrBuilder
     com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -128,13 +97,10 @@ public interface TimeRangeOrBuilder
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -143,13 +109,10 @@ public interface TimeRangeOrBuilder
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -162,61 +125,53 @@ public interface TimeRangeOrBuilder
     com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
   }
   /**
-   *
-   *
    * 
    * A specification for a time range, this will request transfer runs with
    * run_time between start_time (inclusive) and end_time (exclusive).
    * 
* - * Protobuf type {@code - * google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} + * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} */ - public static final class TimeRange extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TimeRange extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) TimeRangeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeRange.newBuilder() to construct. private TimeRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TimeRange() {} + private TimeRange() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimeRange(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .class, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -225,7 +180,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -233,8 +187,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -243,7 +195,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -251,8 +202,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -270,8 +219,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     public static final int END_TIME_FIELD_NUMBER = 2;
     private com.google.protobuf.Timestamp endTime_;
     /**
-     *
-     *
      * 
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -280,7 +227,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -288,8 +234,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -298,7 +242,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -306,8 +249,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -323,7 +264,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -335,7 +275,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 (startTime_ != null) {
         output.writeMessage(1, getStartTime());
       }
@@ -352,10 +293,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (startTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getStartTime());
       }
       if (endTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getEndTime());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -365,23 +308,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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)) {
+      if (!(obj instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange other =
-          (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) obj;
+      com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange other = (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) obj;
 
       if (hasStartTime() != other.hasStartTime()) return false;
       if (hasStartTime()) {
-        if (!getStartTime().equals(other.getStartTime())) return false;
+        if (!getStartTime()
+            .equals(other.getStartTime())) return false;
       }
       if (hasEndTime() != other.hasEndTime()) return false;
       if (hasEndTime()) {
-        if (!getEndTime().equals(other.getEndTime())) return false;
+        if (!getEndTime()
+            .equals(other.getEndTime())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -407,102 +349,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-            prototype) {
+    public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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
@@ -512,47 +440,40 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * A specification for a time range, this will request transfer runs with
      * run_time between start_time (inclusive) and end_time (exclusive).
      * 
* - * Protobuf type {@code - * google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} + * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} */ - 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .class, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.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(); @@ -572,23 +493,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - build() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = - buildPartial(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange build() { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -596,11 +513,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = - new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange( - this); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange buildPartial() { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -619,57 +533,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) - other); + if (other instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) { + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -702,25 +605,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -733,13 +637,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -748,15 +647,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -765,21 +661,16 @@ public boolean hasStartTime() {
        * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** - * - * *
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -803,8 +694,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -814,7 +703,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp start_time = 1;
        */
-      public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setStartTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (startTimeBuilder_ == null) {
           startTime_ = builderForValue.build();
           onChanged();
@@ -825,8 +715,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
         return this;
       }
       /**
-       *
-       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -840,9 +728,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         if (startTimeBuilder_ == null) {
           if (startTime_ != null) {
             startTime_ =
-                com.google.protobuf.Timestamp.newBuilder(startTime_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
           } else {
             startTime_ = value;
           }
@@ -854,8 +740,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -877,8 +761,6 @@ public Builder clearStartTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -889,13 +771,11 @@ public Builder clearStartTime() {
        * .google.protobuf.Timestamp start_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-
+        
         onChanged();
         return getStartTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -909,14 +789,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         if (startTimeBuilder_ != null) {
           return startTimeBuilder_.getMessageOrBuilder();
         } else {
-          return startTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : startTime_;
+          return startTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
         }
       }
       /**
-       *
-       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -927,17 +804,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * .google.protobuf.Timestamp start_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getStartTimeFieldBuilder() {
         if (startTimeBuilder_ == null) {
-          startTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getStartTime(), getParentForChildren(), isClean());
+          startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getStartTime(),
+                  getParentForChildren(),
+                  isClean());
           startTime_ = null;
         }
         return startTimeBuilder_;
@@ -945,13 +819,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
       private com.google.protobuf.Timestamp endTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
-          endTimeBuilder_;
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
       /**
-       *
-       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -960,15 +829,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -977,7 +843,6 @@ public boolean hasEndTime() {
        * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -988,8 +853,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -1013,8 +876,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -1024,7 +885,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp end_time = 2;
        */
-      public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setEndTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (endTimeBuilder_ == null) {
           endTime_ = builderForValue.build();
           onChanged();
@@ -1035,8 +897,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
         return this;
       }
       /**
-       *
-       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -1050,7 +910,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
         if (endTimeBuilder_ == null) {
           if (endTime_ != null) {
             endTime_ =
-                com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
           } else {
             endTime_ = value;
           }
@@ -1062,8 +922,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -1085,8 +943,6 @@ public Builder clearEndTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -1097,13 +953,11 @@ public Builder clearEndTime() {
        * .google.protobuf.Timestamp end_time = 2;
        */
       public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+        
         onChanged();
         return getEndTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -1117,12 +971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
         if (endTimeBuilder_ != null) {
           return endTimeBuilder_.getMessageOrBuilder();
         } else {
-          return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+          return endTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
         }
       }
       /**
-       *
-       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -1133,22 +986,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
        * .google.protobuf.Timestamp end_time = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getEndTimeFieldBuilder() {
         if (endTimeBuilder_ == null) {
-          endTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getEndTime(), getParentForChildren(), isClean());
+          endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getEndTime(),
+                  getParentForChildren(),
+                  isClean());
           endTime_ = null;
         }
         return endTimeBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1161,46 +1010,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
-    private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
-            .TimeRange
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange();
+      DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange();
     }
 
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        getDefaultInstance() {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public TimeRange 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 TimeRange 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;
@@ -1212,24 +1056,21 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private int timeCase_ = 0;
   private java.lang.Object time_;
-
   public enum TimeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     REQUESTED_TIME_RANGE(3),
     REQUESTED_RUN_TIME(4),
     TIME_NOT_SET(0);
     private final int value;
-
     private TimeCase(int value) {
       this.value = value;
     }
@@ -1245,31 +1086,26 @@ public static TimeCase valueOf(int value) {
 
     public static TimeCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return REQUESTED_TIME_RANGE;
-        case 4:
-          return REQUESTED_RUN_TIME;
-        case 0:
-          return TIME_NOT_SET;
-        default:
-          return null;
+        case 3: return REQUESTED_TIME_RANGE;
+        case 4: return REQUESTED_RUN_TIME;
+        case 0: return TIME_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TimeCase getTimeCase() {
-    return TimeCase.forNumber(timeCase_);
+  public TimeCase
+  getTimeCase() {
+    return TimeCase.forNumber(
+        timeCase_);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1277,7 +1113,6 @@ public TimeCase getTimeCase() {
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The parent. */ @java.lang.Override @@ -1286,15 +1121,14 @@ 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; } } /** - * - * *
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1302,15 +1136,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.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 { @@ -1320,16 +1155,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REQUESTED_TIME_RANGE_FIELD_NUMBER = 3; /** - * - * *
    * Time range for the transfer runs that should be started.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; * @return Whether the requestedTimeRange field is set. */ @java.lang.Override @@ -1337,61 +1167,43 @@ public boolean hasRequestedTimeRange() { return timeCase_ == 3; } /** - * - * *
    * Time range for the transfer runs that should be started.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; * @return The requestedTimeRange. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - getRequestedTimeRange() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getRequestedTimeRange() { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) - time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); } /** - * - * *
    * Time range for the transfer runs that should be started.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder - getRequestedTimeRangeOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder getRequestedTimeRangeOrBuilder() { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) - time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); } public static final int REQUESTED_RUN_TIME_FIELD_NUMBER = 4; /** - * - * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; - * * @return Whether the requestedRunTime field is set. */ @java.lang.Override @@ -1399,27 +1211,22 @@ public boolean hasRequestedRunTime() { return timeCase_ == 4; } /** - * - * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; - * * @return The requestedRunTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRequestedRunTime() { if (timeCase_ == 4) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
@@ -1430,13 +1237,12 @@ public com.google.protobuf.Timestamp getRequestedRunTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder() {
     if (timeCase_ == 4) {
-      return (com.google.protobuf.Timestamp) time_;
+       return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1448,15 +1254,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
     if (timeCase_ == 3) {
-      output.writeMessage(
-          3,
-          (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
-              time_);
+      output.writeMessage(3, (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_);
     }
     if (timeCase_ == 4) {
       output.writeMessage(4, (com.google.protobuf.Timestamp) time_);
@@ -1474,16 +1278,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (timeCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3,
-              (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
-                  time_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_);
     }
     if (timeCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.protobuf.Timestamp) time_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.protobuf.Timestamp) time_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1493,23 +1293,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.datatransfer.v1.StartManualTransferRunsRequest)) {
+    if (!(obj instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other =
-        (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) obj;
+    com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other = (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (!getTimeCase().equals(other.getTimeCase())) return false;
     switch (timeCase_) {
       case 3:
-        if (!getRequestedTimeRange().equals(other.getRequestedTimeRange())) return false;
+        if (!getRequestedTimeRange()
+            .equals(other.getRequestedTimeRange())) return false;
         break;
       case 4:
-        if (!getRequestedRunTime().equals(other.getRequestedRunTime())) return false;
+        if (!getRequestedRunTime()
+            .equals(other.getRequestedRunTime())) return false;
         break;
       case 0:
       default:
@@ -1545,139 +1346,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
-      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.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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;
   }
   /**
-   *
-   *
    * 
    * A request to start manual transfer runs.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest} */ - 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.datatransfer.v1.StartManualTransferRunsRequest) com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder - .class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.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(); @@ -1695,22 +1486,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest build() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = - buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1719,8 +1507,7 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = - new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest(this); result.parent_ = parent_; if (timeCase_ == 3) { if (requestedTimeRangeBuilder_ == null) { @@ -1745,71 +1532,62 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) other); + if (other instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) { + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } switch (other.getTimeCase()) { - case REQUESTED_TIME_RANGE: - { - mergeRequestedTimeRange(other.getRequestedTimeRange()); - break; - } - case REQUESTED_RUN_TIME: - { - mergeRequestedRunTime(other.getRequestedRunTime()); - break; - } - case TIME_NOT_SET: - { - break; - } + case REQUESTED_TIME_RANGE: { + mergeRequestedTimeRange(other.getRequestedTimeRange()); + break; + } + case REQUESTED_RUN_TIME: { + mergeRequestedRunTime(other.getRequestedRunTime()); + break; + } + case TIME_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1837,33 +1615,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 26: - { - input.readMessage( - getRequestedTimeRangeFieldBuilder().getBuilder(), extensionRegistry); - timeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getRequestedRunTimeFieldBuilder().getBuilder(), extensionRegistry); - timeCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 26: { + input.readMessage( + getRequestedTimeRangeFieldBuilder().getBuilder(), + extensionRegistry); + timeCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getRequestedRunTimeFieldBuilder().getBuilder(), + extensionRegistry); + timeCase_ = 4; + 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) { @@ -1873,12 +1649,12 @@ public Builder mergeFrom( } // finally return this; } - private int timeCase_ = 0; private java.lang.Object time_; - - public TimeCase getTimeCase() { - return TimeCase.forNumber(timeCase_); + public TimeCase + getTimeCase() { + return TimeCase.forNumber( + timeCase_); } public Builder clearTime() { @@ -1888,10 +1664,9 @@ public Builder clearTime() { return this; } + private java.lang.Object parent_ = ""; /** - * - * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1899,13 +1674,13 @@ public Builder clearTime() {
      * 
* * string parent = 1 [(.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; @@ -1914,8 +1689,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1923,14 +1696,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.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 { @@ -1938,8 +1712,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1947,22 +1719,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1970,18 +1740,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1989,39 +1756,29 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .Builder, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRangeOrBuilder> - requestedTimeRangeBuilder_; + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder> requestedTimeRangeBuilder_; /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; * @return Whether the requestedTimeRange field is set. */ @java.lang.Override @@ -2029,50 +1786,35 @@ public boolean hasRequestedTimeRange() { return timeCase_ == 3; } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; * @return The requestedTimeRange. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - getRequestedTimeRange() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getRequestedTimeRange() { if (requestedTimeRangeBuilder_ == null) { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRange) - time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); } else { if (timeCase_ == 3) { return requestedTimeRangeBuilder_.getMessage(); } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); } } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ - public Builder setRequestedTimeRange( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { + public Builder setRequestedTimeRange(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { if (requestedTimeRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2086,19 +1828,14 @@ public Builder setRequestedTimeRange( return this; } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ public Builder setRequestedTimeRange( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder - builderForValue) { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder builderForValue) { if (requestedTimeRangeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); @@ -2109,31 +1846,18 @@ public Builder setRequestedTimeRange( return this; } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ - public Builder mergeRequestedTimeRange( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { + public Builder mergeRequestedTimeRange(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { if (requestedTimeRangeBuilder_ == null) { - if (timeCase_ == 3 - && time_ - != com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRange.getDefaultInstance()) { - time_ = - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .newBuilder( - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRange) - time_) - .mergeFrom(value) - .buildPartial(); + if (timeCase_ == 3 && + time_ != com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance()) { + time_ = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.newBuilder((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_) + .mergeFrom(value).buildPartial(); } else { time_ = value; } @@ -2149,15 +1873,11 @@ public Builder mergeRequestedTimeRange( return this; } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ public Builder clearRequestedTimeRange() { if (requestedTimeRangeBuilder_ == null) { @@ -2176,106 +1896,68 @@ public Builder clearRequestedTimeRange() { return this; } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .Builder - getRequestedTimeRangeBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder getRequestedTimeRangeBuilder() { return getRequestedTimeRangeFieldBuilder().getBuilder(); } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRangeOrBuilder - getRequestedTimeRangeOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder getRequestedTimeRangeOrBuilder() { if ((timeCase_ == 3) && (requestedTimeRangeBuilder_ != null)) { return requestedTimeRangeBuilder_.getMessageOrBuilder(); } else { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRange) - time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); } } /** - * - * *
      * Time range for the transfer runs that should be started.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .Builder, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRangeOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder> getRequestedTimeRangeFieldBuilder() { if (requestedTimeRangeBuilder_ == null) { if (!(timeCase_ == 3)) { - time_ = - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .getDefaultInstance(); + time_ = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); } - requestedTimeRangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - .Builder, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest - .TimeRangeOrBuilder>( - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) - time_, + requestedTimeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder>( + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_, getParentForChildren(), isClean()); time_ = null; } timeCase_ = 3; - onChanged(); - ; + onChanged();; return requestedTimeRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - requestedRunTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> requestedRunTimeBuilder_; /** - * - * *
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
      * 
* * .google.protobuf.Timestamp requested_run_time = 4; - * * @return Whether the requestedRunTime field is set. */ @java.lang.Override @@ -2283,15 +1965,12 @@ public boolean hasRequestedRunTime() { return timeCase_ == 4; } /** - * - * *
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
      * 
* * .google.protobuf.Timestamp requested_run_time = 4; - * * @return The requestedRunTime. */ @java.lang.Override @@ -2309,8 +1988,6 @@ public com.google.protobuf.Timestamp getRequestedRunTime() { } } /** - * - * *
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2332,8 +2009,6 @@ public Builder setRequestedRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2341,7 +2016,8 @@ public Builder setRequestedRunTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp requested_run_time = 4;
      */
-    public Builder setRequestedRunTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setRequestedRunTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (requestedRunTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -2352,8 +2028,6 @@ public Builder setRequestedRunTime(com.google.protobuf.Timestamp.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2363,11 +2037,10 @@ public Builder setRequestedRunTime(com.google.protobuf.Timestamp.Builder builder
      */
     public Builder mergeRequestedRunTime(com.google.protobuf.Timestamp value) {
       if (requestedRunTimeBuilder_ == null) {
-        if (timeCase_ == 4 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (timeCase_ == 4 &&
+            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+              .mergeFrom(value).buildPartial();
         } else {
           time_ = value;
         }
@@ -2383,8 +2056,6 @@ public Builder mergeRequestedRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2409,8 +2080,6 @@ public Builder clearRequestedRunTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2422,8 +2091,6 @@ public com.google.protobuf.Timestamp.Builder getRequestedRunTimeBuilder() {
       return getRequestedRunTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2443,8 +2110,6 @@ public com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2453,30 +2118,26 @@ public com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder() {
      * .google.protobuf.Timestamp requested_run_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getRequestedRunTimeFieldBuilder() {
       if (requestedRunTimeBuilder_ == null) {
         if (!(timeCase_ == 4)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        requestedRunTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
+        requestedRunTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_,
+                getParentForChildren(),
+                isClean());
         time_ = null;
       }
       timeCase_ = 4;
-      onChanged();
-      ;
+      onChanged();;
       return requestedRunTimeBuilder_;
     }
-
     @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);
     }
 
@@ -2486,44 +2147,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)
-  private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE =
-        new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest();
+    DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest();
   }
 
-  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
-      getDefaultInstance() {
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public StartManualTransferRunsRequest 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 StartManualTransferRunsRequest 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;
@@ -2535,8 +2193,9 @@ public com.google.protobuf.Parser getParserForTy
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
similarity index 64%
rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
index 52c65cc03bb3..e3f549101d16 100644
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
+++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
-public interface StartManualTransferRunsRequestOrBuilder
-    extends
+public interface StartManualTransferRunsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -33,13 +15,10 @@ public interface StartManualTransferRunsRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -47,83 +26,59 @@ public interface StartManualTransferRunsRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Time range for the transfer runs that should be started.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; * @return Whether the requestedTimeRange field is set. */ boolean hasRequestedTimeRange(); /** - * - * *
    * Time range for the transfer runs that should be started.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; * @return The requestedTimeRange. */ - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange - getRequestedTimeRange(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getRequestedTimeRange(); /** - * - * *
    * Time range for the transfer runs that should be started.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; - * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; */ - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder - getRequestedTimeRangeOrBuilder(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder getRequestedTimeRangeOrBuilder(); /** - * - * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; - * * @return Whether the requestedRunTime field is set. */ boolean hasRequestedRunTime(); /** - * - * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; - * * @return The requestedRunTime. */ com.google.protobuf.Timestamp getRequestedRunTime(); /** - * - * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
@@ -133,6 +88,5 @@ public interface StartManualTransferRunsRequestOrBuilder
    */
   com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder();
 
-  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeCase
-      getTimeCase();
+  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeCase getTimeCase();
 }
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
similarity index 66%
rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
index d11d99ef4256..1c56799dce5e 100644
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
+++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
@@ -1,79 +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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
- *
- *
  * 
  * A response to start manual transfer runs.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse} */ -public final class StartManualTransferRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartManualTransferRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) StartManualTransferRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartManualTransferRunsResponse.newBuilder() to construct. - private StartManualTransferRunsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StartManualTransferRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartManualTransferRunsResponse() { runs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartManualTransferRunsResponse(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder - .class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder.class); } public static final int RUNS_FIELD_NUMBER = 1; private java.util.List runs_; /** - * - * *
    * The transfer runs that were created.
    * 
@@ -85,8 +62,6 @@ public java.util.List get return runs_; } /** - * - * *
    * The transfer runs that were created.
    * 
@@ -94,13 +69,11 @@ public java.util.List get * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRunsOrBuilderList() { return runs_; } /** - * - * *
    * The transfer runs that were created.
    * 
@@ -112,8 +85,6 @@ public int getRunsCount() { return runs_.size(); } /** - * - * *
    * The transfer runs that were created.
    * 
@@ -125,8 +96,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) return runs_.get(index); } /** - * - * *
    * The transfer runs that were created.
    * 
@@ -140,7 +109,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < runs_.size(); i++) { output.writeMessage(1, runs_.get(i)); } @@ -166,7 +135,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, runs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,16 +146,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.datatransfer.v1.StartManualTransferRunsResponse)) { + if (!(obj instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other = - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other = (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) obj; - if (!getRunsList().equals(other.getRunsList())) return false; + if (!getRunsList() + .equals(other.getRunsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,139 +176,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - 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.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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; } /** - * - * *
    * A response to start manual transfer runs.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse} */ - 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.datatransfer.v1.StartManualTransferRunsResponse) com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder - .class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.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(); @@ -354,22 +313,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse build() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = - buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -377,10 +333,8 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = - new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(this); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse buildPartial() { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(this); int from_bitField0_ = bitField0_; if (runsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -399,52 +353,46 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) other); + if (other instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) { + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.getDefaultInstance()) return this; if (runsBuilder_ == null) { if (!other.runs_.isEmpty()) { if (runs_.isEmpty()) { @@ -463,10 +411,9 @@ public Builder mergeFrom( runsBuilder_ = null; runs_ = other.runs_; bitField0_ = (bitField0_ & ~0x00000001); - runsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRunsFieldBuilder() - : null; + runsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRunsFieldBuilder() : null; } else { runsBuilder_.addAllMessages(other.runs_); } @@ -498,27 +445,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.datatransfer.v1.TransferRun m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), - extensionRegistry); - if (runsBuilder_ == null) { - ensureRunsIsMutable(); - runs_.add(m); - } else { - runsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.bigquery.datatransfer.v1.TransferRun m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), + extensionRegistry); + if (runsBuilder_ == null) { + ensureRunsIsMutable(); + runs_.add(m); + } else { + runsBuilder_.addMessage(m); + } + 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) { @@ -528,29 +473,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List runs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runs_ = - new java.util.ArrayList(runs_); + runs_ = new java.util.ArrayList(runs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> - runsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> runsBuilder_; /** - * - * *
      * The transfer runs that were created.
      * 
@@ -565,8 +502,6 @@ public java.util.List get } } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -581,8 +516,6 @@ public int getRunsCount() { } } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -597,15 +530,14 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) } } /** - * - * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder setRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder setRuns( + int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -619,8 +551,6 @@ public Builder setRuns(int index, com.google.cloud.bigquery.datatransfer.v1.Tran return this; } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -639,8 +569,6 @@ public Builder setRuns( return this; } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -661,15 +589,14 @@ public Builder addRuns(com.google.cloud.bigquery.datatransfer.v1.TransferRun val return this; } /** - * - * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder addRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder addRuns( + int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -683,8 +610,6 @@ public Builder addRuns(int index, com.google.cloud.bigquery.datatransfer.v1.Tran return this; } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -703,8 +628,6 @@ public Builder addRuns( return this; } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -723,8 +646,6 @@ public Builder addRuns( return this; } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -732,11 +653,11 @@ public Builder addRuns( * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public Builder addAllRuns( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (runsBuilder_ == null) { ensureRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, runs_); onChanged(); } else { runsBuilder_.addAllMessages(values); @@ -744,8 +665,6 @@ public Builder addAllRuns( return this; } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -763,8 +682,6 @@ public Builder clearRuns() { return this; } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -782,20 +699,17 @@ public Builder removeRuns(int index) { return this; } /** - * - * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder( + int index) { return getRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -805,22 +719,19 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuil public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( int index) { if (runsBuilder_ == null) { - return runs_.get(index); - } else { + return runs_.get(index); } else { return runsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsOrBuilderList() { + public java.util.List + getRunsOrBuilderList() { if (runsBuilder_ != null) { return runsBuilder_.getMessageOrBuilderList(); } else { @@ -828,8 +739,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } } /** - * - * *
      * The transfer runs that were created.
      * 
@@ -837,56 +746,49 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder() { - return getRunsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getRunsFieldBuilder().addBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** - * - * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder(int index) { - return getRunsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder( + int index) { + return getRunsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** - * - * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsBuilderList() { + public java.util.List + getRunsBuilderList() { return getRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> getRunsFieldBuilder() { if (runsBuilder_ == null) { - runsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( - runs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + runsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( + runs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); runs_ = null; } return runsBuilder_; } - @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); } @@ -896,44 +798,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartManualTransferRunsResponse 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 StartManualTransferRunsResponse 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; @@ -945,8 +844,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java similarity index 65% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java index 45006e0903df..712d5762982d 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface StartManualTransferRunsResponseOrBuilder - extends +public interface StartManualTransferRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The transfer runs that were created.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List getRunsList(); + java.util.List + getRunsList(); /** - * - * *
    * The transfer runs that were created.
    * 
@@ -44,8 +25,6 @@ public interface StartManualTransferRunsResponseOrBuilder */ com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index); /** - * - * *
    * The transfer runs that were created.
    * 
@@ -54,24 +33,21 @@ public interface StartManualTransferRunsResponseOrBuilder */ int getRunsCount(); /** - * - * *
    * The transfer runs that were created.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List + java.util.List getRunsOrBuilderList(); /** - * - * *
    * The transfer runs that were created.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder(int index); + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( + int index); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java similarity index 73% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java index e6124ca3bfaf..044381732ef7 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Represents a data transfer configuration. A transfer configuration
  * contains all metadata needed to perform a data transfer. For example,
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferConfig}
  */
-public final class TransferConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TransferConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.TransferConfig)
     TransferConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TransferConfig.newBuilder() to construct.
   private TransferConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TransferConfig() {
     name_ = "";
     displayName_ = "";
@@ -54,42 +36,38 @@ private TransferConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TransferConfig();
   }
 
   @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.datatransfer.v1.TransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-        .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class,
-            com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
   }
 
   private int bitField0_;
   private int destinationCase_ = 0;
   private java.lang.Object destination_;
-
   public enum DestinationCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     DESTINATION_DATASET_ID(2),
     DESTINATION_NOT_SET(0);
     private final int value;
-
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -105,29 +83,25 @@ public static DestinationCase valueOf(int value) {
 
     public static DestinationCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return DESTINATION_DATASET_ID;
-        case 0:
-          return DESTINATION_NOT_SET;
-        default:
-          return null;
+        case 2: return DESTINATION_DATASET_ID;
+        case 0: return DESTINATION_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DestinationCase getDestinationCase() {
-    return DestinationCase.forNumber(destinationCase_);
+  public DestinationCase
+  getDestinationCase() {
+    return DestinationCase.forNumber(
+        destinationCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -138,7 +112,6 @@ public DestinationCase getDestinationCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -147,15 +120,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -166,15 +138,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -184,28 +157,22 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESTINATION_DATASET_ID_FIELD_NUMBER = 2; /** - * - * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; - * * @return Whether the destinationDatasetId field is set. */ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** - * - * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; - * * @return The destinationDatasetId. */ public java.lang.String getDestinationDatasetId() { @@ -216,7 +183,8 @@ public java.lang.String getDestinationDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -225,24 +193,23 @@ public java.lang.String getDestinationDatasetId() { } } /** - * - * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; - * * @return The bytes for destinationDatasetId. */ - public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString + getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -255,14 +222,11 @@ public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** - * - * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -271,29 +235,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -304,14 +268,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DATA_SOURCE_ID_FIELD_NUMBER = 5; private volatile java.lang.Object dataSourceId_; /** - * - * *
-   * Data source id. Cannot be changed once data transfer is created.
+   * Data source ID. This cannot be changed once data transfer is created. The
+   * full list of available data source IDs can be returned through an API call:
+   * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
    * 
* * string data_source_id = 5; - * * @return The dataSourceId. */ @java.lang.Override @@ -320,29 +283,31 @@ public java.lang.String getDataSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; } } /** - * - * *
-   * Data source id. Cannot be changed once data transfer is created.
+   * Data source ID. This cannot be changed once data transfer is created. The
+   * full list of available data source IDs can be returned through an API call:
+   * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
    * 
* * string data_source_id = 5; - * * @return The bytes for dataSourceId. */ @java.lang.Override - public com.google.protobuf.ByteString getDataSourceIdBytes() { + public com.google.protobuf.ByteString + getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -353,8 +318,6 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() { public static final int PARAMS_FIELD_NUMBER = 9; private com.google.protobuf.Struct params_; /** - * - * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -363,7 +326,6 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() {
    * 
* * .google.protobuf.Struct params = 9; - * * @return Whether the params field is set. */ @java.lang.Override @@ -371,8 +333,6 @@ public boolean hasParams() { return params_ != null; } /** - * - * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -381,7 +341,6 @@ public boolean hasParams() {
    * 
* * .google.protobuf.Struct params = 9; - * * @return The params. */ @java.lang.Override @@ -389,8 +348,6 @@ public com.google.protobuf.Struct getParams() { return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; } /** - * - * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -408,8 +365,6 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
   public static final int SCHEDULE_FIELD_NUMBER = 7;
   private volatile java.lang.Object schedule_;
   /**
-   *
-   *
    * 
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -427,7 +382,6 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
    * 
* * string schedule = 7; - * * @return The schedule. */ @java.lang.Override @@ -436,15 +390,14 @@ public java.lang.String getSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; } } /** - * - * *
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -462,15 +415,16 @@ public java.lang.String getSchedule() {
    * 
* * string schedule = 7; - * * @return The bytes for schedule. */ @java.lang.Override - public com.google.protobuf.ByteString getScheduleBytes() { + public com.google.protobuf.ByteString + getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schedule_ = b; return b; } else { @@ -481,14 +435,11 @@ public com.google.protobuf.ByteString getScheduleBytes() { public static final int SCHEDULE_OPTIONS_FIELD_NUMBER = 24; private com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions scheduleOptions_; /** - * - * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; - * * @return Whether the scheduleOptions field is set. */ @java.lang.Override @@ -496,25 +447,18 @@ public boolean hasScheduleOptions() { return scheduleOptions_ != null; } /** - * - * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; - * * @return The scheduleOptions. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOptions() { - return scheduleOptions_ == null - ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() - : scheduleOptions_; + return scheduleOptions_ == null ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() : scheduleOptions_; } /** - * - * *
    * Options customizing the data transfer schedule.
    * 
@@ -522,16 +466,13 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOpti * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder - getScheduleOptionsOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getScheduleOptionsOrBuilder() { return getScheduleOptions(); } public static final int DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER = 12; private int dataRefreshWindowDays_; /** - * - * *
    * The number of days to look back to automatically refresh the data.
    * For example, if `data_refresh_window_days = 10`, then every day
@@ -542,7 +483,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOpti
    * 
* * int32 data_refresh_window_days = 12; - * * @return The dataRefreshWindowDays. */ @java.lang.Override @@ -553,15 +493,12 @@ public int getDataRefreshWindowDays() { public static final int DISABLED_FIELD_NUMBER = 13; private boolean disabled_; /** - * - * *
    * Is this config disabled. When set to true, no runs are scheduled
    * for a given transfer.
    * 
* * bool disabled = 13; - * * @return The disabled. */ @java.lang.Override @@ -572,15 +509,11 @@ public boolean getDisabled() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -588,15 +521,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -604,14 +533,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -621,16 +547,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int NEXT_RUN_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp nextRunTime_; /** - * - * *
    * Output only. Next time when data transfer will run.
    * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextRunTime field is set. */ @java.lang.Override @@ -638,16 +559,11 @@ public boolean hasNextRunTime() { return nextRunTime_ != null; } /** - * - * *
    * Output only. Next time when data transfer will run.
    * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextRunTime. */ @java.lang.Override @@ -655,15 +571,11 @@ public com.google.protobuf.Timestamp getNextRunTime() { return nextRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRunTime_; } /** - * - * *
    * Output only. Next time when data transfer will run.
    * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { @@ -673,56 +585,38 @@ public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 10; private int state_; /** - * - * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { + @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = - com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } public static final int USER_ID_FIELD_NUMBER = 11; private long userId_; /** - * - * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; - * * @return The userId. */ @java.lang.Override @@ -733,14 +627,11 @@ public long getUserId() { public static final int DATASET_REGION_FIELD_NUMBER = 14; private volatile java.lang.Object datasetRegion_; /** - * - * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The datasetRegion. */ @java.lang.Override @@ -749,29 +640,29 @@ public java.lang.String getDatasetRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetRegion_ = s; return s; } } /** - * - * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for datasetRegion. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetRegionBytes() { + public com.google.protobuf.ByteString + getDatasetRegionBytes() { java.lang.Object ref = datasetRegion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetRegion_ = b; return b; } else { @@ -782,8 +673,6 @@ public com.google.protobuf.ByteString getDatasetRegionBytes() { public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER = 15; private volatile java.lang.Object notificationPubsubTopic_; /** - * - * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -792,7 +681,6 @@ public com.google.protobuf.ByteString getDatasetRegionBytes() {
    * 
* * string notification_pubsub_topic = 15; - * * @return The notificationPubsubTopic. */ @java.lang.Override @@ -801,15 +689,14 @@ public java.lang.String getNotificationPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; } } /** - * - * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -818,15 +705,16 @@ public java.lang.String getNotificationPubsubTopic() {
    * 
* * string notification_pubsub_topic = 15; - * * @return The bytes for notificationPubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString + getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -837,15 +725,12 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { public static final int EMAIL_PREFERENCES_FIELD_NUMBER = 18; private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; /** - * - * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; - * * @return Whether the emailPreferences field is set. */ @java.lang.Override @@ -853,26 +738,19 @@ public boolean hasEmailPreferences() { return emailPreferences_ != null; } /** - * - * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; - * * @return The emailPreferences. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { - return emailPreferences_ == null - ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() - : emailPreferences_; + return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; } /** - * - * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
@@ -881,26 +759,20 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPrefer
    * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder
-      getEmailPreferencesOrBuilder() {
+  public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() {
     return getEmailPreferences();
   }
 
   public static final int OWNER_INFO_FIELD_NUMBER = 27;
   private com.google.cloud.bigquery.datatransfer.v1.UserInfo ownerInfo_;
   /**
-   *
-   *
    * 
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ownerInfo field is set. */ @java.lang.Override @@ -908,48 +780,34 @@ public boolean hasOwnerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ownerInfo. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.UserInfo getOwnerInfo() { - return ownerInfo_ == null - ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() - : ownerInfo_; + return ownerInfo_ == null ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; } /** - * - * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder getOwnerInfoOrBuilder() { - return ownerInfo_ == null - ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() - : ownerInfo_; + return ownerInfo_ == null ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -961,7 +819,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_); } @@ -986,9 +845,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (params_ != null) { output.writeMessage(9, getParams()); } - if (state_ - != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } if (userId_ != 0L) { @@ -1034,7 +891,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dataSourceId_); @@ -1043,40 +901,46 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, schedule_); } if (nextRunTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNextRunTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getNextRunTime()); } if (params_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getParams()); } - if (state_ - != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, state_); } if (userId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, userId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, userId_); } if (dataRefreshWindowDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, dataRefreshWindowDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, dataRefreshWindowDays_); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, disabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, disabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetRegion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, datasetRegion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationPubsubTopic_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(15, notificationPubsubTopic_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, notificationPubsubTopic_); } if (emailPreferences_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getEmailPreferences()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getEmailPreferences()); } if (scheduleOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getScheduleOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getScheduleOptions()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getOwnerInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getOwnerInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1086,52 +950,67 @@ 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.datatransfer.v1.TransferConfig)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.TransferConfig other = - (com.google.cloud.bigquery.datatransfer.v1.TransferConfig) obj; + com.google.cloud.bigquery.datatransfer.v1.TransferConfig other = (com.google.cloud.bigquery.datatransfer.v1.TransferConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDataSourceId().equals(other.getDataSourceId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDataSourceId() + .equals(other.getDataSourceId())) return false; if (hasParams() != other.hasParams()) return false; if (hasParams()) { - if (!getParams().equals(other.getParams())) return false; + if (!getParams() + .equals(other.getParams())) return false; } - if (!getSchedule().equals(other.getSchedule())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; if (hasScheduleOptions() != other.hasScheduleOptions()) return false; if (hasScheduleOptions()) { - if (!getScheduleOptions().equals(other.getScheduleOptions())) return false; + if (!getScheduleOptions() + .equals(other.getScheduleOptions())) return false; } - if (getDataRefreshWindowDays() != other.getDataRefreshWindowDays()) return false; - if (getDisabled() != other.getDisabled()) return false; + if (getDataRefreshWindowDays() + != other.getDataRefreshWindowDays()) return false; + if (getDisabled() + != other.getDisabled()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasNextRunTime() != other.hasNextRunTime()) return false; if (hasNextRunTime()) { - if (!getNextRunTime().equals(other.getNextRunTime())) return false; + if (!getNextRunTime() + .equals(other.getNextRunTime())) return false; } if (state_ != other.state_) return false; - if (getUserId() != other.getUserId()) return false; - if (!getDatasetRegion().equals(other.getDatasetRegion())) return false; - if (!getNotificationPubsubTopic().equals(other.getNotificationPubsubTopic())) return false; + if (getUserId() + != other.getUserId()) return false; + if (!getDatasetRegion() + .equals(other.getDatasetRegion())) return false; + if (!getNotificationPubsubTopic() + .equals(other.getNotificationPubsubTopic())) return false; if (hasEmailPreferences() != other.hasEmailPreferences()) return false; if (hasEmailPreferences()) { - if (!getEmailPreferences().equals(other.getEmailPreferences())) return false; + if (!getEmailPreferences() + .equals(other.getEmailPreferences())) return false; } if (hasOwnerInfo() != other.hasOwnerInfo()) return false; if (hasOwnerInfo()) { - if (!getOwnerInfo().equals(other.getOwnerInfo())) return false; + if (!getOwnerInfo() + .equals(other.getOwnerInfo())) return false; } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: - if (!getDestinationDatasetId().equals(other.getDestinationDatasetId())) return false; + if (!getDestinationDatasetId() + .equals(other.getDestinationDatasetId())) return false; break; case 0: default: @@ -1166,7 +1045,8 @@ public int hashCode() { hash = (37 * hash) + DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER; hash = (53 * hash) + getDataRefreshWindowDays(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -1178,7 +1058,8 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + USER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); hash = (37 * hash) + DATASET_REGION_FIELD_NUMBER; hash = (53 * hash) + getDatasetRegion().hashCode(); hash = (37 * hash) + NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER; @@ -1205,104 +1086,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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; } /** - * - * *
    * Represents a data transfer configuration. A transfer configuration
    * contains all metadata needed to perform a data transfer. For example,
@@ -1314,23 +1187,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferConfig}
    */
-  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.datatransfer.v1.TransferConfig)
       com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class,
-              com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder()
@@ -1338,17 +1209,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getOwnerInfoFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1414,9 +1285,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
-          .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1435,8 +1306,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.TransferConfig buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.TransferConfig result =
-          new com.google.cloud.bigquery.datatransfer.v1.TransferConfig(this);
+      com.google.cloud.bigquery.datatransfer.v1.TransferConfig result = new com.google.cloud.bigquery.datatransfer.v1.TransferConfig(this);
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       result.name_ = name_;
@@ -1495,39 +1365,38 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferConfig) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferConfig) other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1535,8 +1404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferConfig other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1592,17 +1460,15 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferConfi
         mergeOwnerInfo(other.getOwnerInfo());
       }
       switch (other.getDestinationCase()) {
-        case DESTINATION_DATASET_ID:
-          {
-            destinationCase_ = 2;
-            destination_ = other.destination_;
-            onChanged();
-            break;
-          }
-        case DESTINATION_NOT_SET:
-          {
-            break;
-          }
+        case DESTINATION_DATASET_ID: {
+          destinationCase_ = 2;
+          destination_ = other.destination_;
+          onChanged();
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1630,117 +1496,110 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                destinationCase_ = 2;
-                destination_ = s;
-                break;
-              } // case 18
-            case 26:
-              {
-                displayName_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              destinationCase_ = 2;
+              destination_ = s;
+              break;
+            } // case 18
+            case 26: {
+              displayName_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 34
-            case 42:
-              {
-                dataSourceId_ = input.readStringRequireUtf8();
+              break;
+            } // case 34
+            case 42: {
+              dataSourceId_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 42
-            case 58:
-              {
-                schedule_ = input.readStringRequireUtf8();
+              break;
+            } // case 42
+            case 58: {
+              schedule_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getNextRunTimeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getNextRunTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getParamsFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getParamsFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 74
-            case 80:
-              {
-                state_ = input.readEnum();
+              break;
+            } // case 74
+            case 80: {
+              state_ = input.readEnum();
 
-                break;
-              } // case 80
-            case 88:
-              {
-                userId_ = input.readInt64();
+              break;
+            } // case 80
+            case 88: {
+              userId_ = input.readInt64();
 
-                break;
-              } // case 88
-            case 96:
-              {
-                dataRefreshWindowDays_ = input.readInt32();
+              break;
+            } // case 88
+            case 96: {
+              dataRefreshWindowDays_ = input.readInt32();
 
-                break;
-              } // case 96
-            case 104:
-              {
-                disabled_ = input.readBool();
+              break;
+            } // case 96
+            case 104: {
+              disabled_ = input.readBool();
 
-                break;
-              } // case 104
-            case 114:
-              {
-                datasetRegion_ = input.readStringRequireUtf8();
+              break;
+            } // case 104
+            case 114: {
+              datasetRegion_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 114
-            case 122:
-              {
-                notificationPubsubTopic_ = input.readStringRequireUtf8();
+              break;
+            } // case 114
+            case 122: {
+              notificationPubsubTopic_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 122
-            case 146:
-              {
-                input.readMessage(
-                    getEmailPreferencesFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 122
+            case 146: {
+              input.readMessage(
+                  getEmailPreferencesFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 146
-            case 194:
-              {
-                input.readMessage(getScheduleOptionsFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 146
+            case 194: {
+              input.readMessage(
+                  getScheduleOptionsFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 194
-            case 218:
-              {
-                input.readMessage(getOwnerInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 218
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 194
+            case 218: {
+              input.readMessage(
+                  getOwnerInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 218
+            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) {
@@ -1750,12 +1609,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1769,8 +1628,6 @@ public Builder clearDestination() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1781,13 +1638,13 @@ public Builder clearDestination() {
      * 
* * 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; @@ -1796,8 +1653,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1808,14 +1663,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1823,8 +1679,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1835,22 +1689,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1861,18 +1713,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1883,30 +1732,27 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } /** - * - * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; - * * @return Whether the destinationDatasetId field is set. */ @java.lang.Override @@ -1914,14 +1760,11 @@ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** - * - * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; - * * @return The destinationDatasetId. */ @java.lang.Override @@ -1931,7 +1774,8 @@ public java.lang.String getDestinationDatasetId() { ref = destination_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -1942,25 +1786,24 @@ public java.lang.String getDestinationDatasetId() { } } /** - * - * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; - * * @return The bytes for destinationDatasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString + getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -1970,35 +1813,30 @@ public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { } } /** - * - * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; - * * @param value The destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetId(java.lang.String value) { + public Builder setDestinationDatasetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - destinationCase_ = 2; + throw new NullPointerException(); + } + destinationCase_ = 2; destination_ = value; onChanged(); return this; } /** - * - * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; - * * @return This builder for chaining. */ public Builder clearDestinationDatasetId() { @@ -2010,22 +1848,20 @@ public Builder clearDestinationDatasetId() { return this; } /** - * - * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; - * * @param value The bytes for destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetIdBytes(com.google.protobuf.ByteString value) { + public Builder setDestinationDatasetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); destinationCase_ = 2; destination_ = value; onChanged(); @@ -2034,20 +1870,18 @@ public Builder setDestinationDatasetIdBytes(com.google.protobuf.ByteString value private java.lang.Object displayName_ = ""; /** - * - * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2056,21 +1890,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2078,61 +1911,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2140,20 +1966,20 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataSourceId_ = ""; /** - * - * *
-     * Data source id. Cannot be changed once data transfer is created.
+     * Data source ID. This cannot be changed once data transfer is created. The
+     * full list of available data source IDs can be returned through an API call:
+     * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
      * 
* * string data_source_id = 5; - * * @return The dataSourceId. */ public java.lang.String getDataSourceId() { java.lang.Object ref = dataSourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; @@ -2162,21 +1988,22 @@ public java.lang.String getDataSourceId() { } } /** - * - * *
-     * Data source id. Cannot be changed once data transfer is created.
+     * Data source ID. This cannot be changed once data transfer is created. The
+     * full list of available data source IDs can be returned through an API call:
+     * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
      * 
* * string data_source_id = 5; - * * @return The bytes for dataSourceId. */ - public com.google.protobuf.ByteString getDataSourceIdBytes() { + public com.google.protobuf.ByteString + getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -2184,61 +2011,60 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() { } } /** - * - * *
-     * Data source id. Cannot be changed once data transfer is created.
+     * Data source ID. This cannot be changed once data transfer is created. The
+     * full list of available data source IDs can be returned through an API call:
+     * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
      * 
* * string data_source_id = 5; - * * @param value The dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceId(java.lang.String value) { + public Builder setDataSourceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataSourceId_ = value; onChanged(); return this; } /** - * - * *
-     * Data source id. Cannot be changed once data transfer is created.
+     * Data source ID. This cannot be changed once data transfer is created. The
+     * full list of available data source IDs can be returned through an API call:
+     * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
      * 
* * string data_source_id = 5; - * * @return This builder for chaining. */ public Builder clearDataSourceId() { - + dataSourceId_ = getDefaultInstance().getDataSourceId(); onChanged(); return this; } /** - * - * *
-     * Data source id. Cannot be changed once data transfer is created.
+     * Data source ID. This cannot be changed once data transfer is created. The
+     * full list of available data source IDs can be returned through an API call:
+     * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
      * 
* * string data_source_id = 5; - * * @param value The bytes for dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { + public Builder setDataSourceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceId_ = value; onChanged(); return this; @@ -2246,13 +2072,8 @@ public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct params_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - paramsBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> paramsBuilder_; /** - * - * *
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2261,15 +2082,12 @@ public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Struct params = 9; - * * @return Whether the params field is set. */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** - * - * *
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2278,7 +2096,6 @@ public boolean hasParams() {
      * 
* * .google.protobuf.Struct params = 9; - * * @return The params. */ public com.google.protobuf.Struct getParams() { @@ -2289,8 +2106,6 @@ public com.google.protobuf.Struct getParams() { } } /** - * - * *
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2314,8 +2129,6 @@ public Builder setParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2325,7 +2138,8 @@ public Builder setParams(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct params = 9;
      */
-    public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setParams(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (paramsBuilder_ == null) {
         params_ = builderForValue.build();
         onChanged();
@@ -2336,8 +2150,6 @@ public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2350,7 +2162,8 @@ public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
     public Builder mergeParams(com.google.protobuf.Struct value) {
       if (paramsBuilder_ == null) {
         if (params_ != null) {
-          params_ = com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
+          params_ =
+            com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
         } else {
           params_ = value;
         }
@@ -2362,8 +2175,6 @@ public Builder mergeParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2385,8 +2196,6 @@ public Builder clearParams() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2397,13 +2206,11 @@ public Builder clearParams() {
      * .google.protobuf.Struct params = 9;
      */
     public com.google.protobuf.Struct.Builder getParamsBuilder() {
-
+      
       onChanged();
       return getParamsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2417,12 +2224,11 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
       if (paramsBuilder_ != null) {
         return paramsBuilder_.getMessageOrBuilder();
       } else {
-        return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
+        return params_ == null ?
+            com.google.protobuf.Struct.getDefaultInstance() : params_;
       }
     }
     /**
-     *
-     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2433,17 +2239,14 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
      * .google.protobuf.Struct params = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getParamsFieldBuilder() {
       if (paramsBuilder_ == null) {
-        paramsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                getParams(), getParentForChildren(), isClean());
+        paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                getParams(),
+                getParentForChildren(),
+                isClean());
         params_ = null;
       }
       return paramsBuilder_;
@@ -2451,8 +2254,6 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
 
     private java.lang.Object schedule_ = "";
     /**
-     *
-     *
      * 
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2470,13 +2271,13 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
      * 
* * string schedule = 7; - * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = schedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; @@ -2485,8 +2286,6 @@ public java.lang.String getSchedule() { } } /** - * - * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2504,14 +2303,15 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 7; - * * @return The bytes for schedule. */ - public com.google.protobuf.ByteString getScheduleBytes() { + public com.google.protobuf.ByteString + getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schedule_ = b; return b; } else { @@ -2519,8 +2319,6 @@ public com.google.protobuf.ByteString getScheduleBytes() { } } /** - * - * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2538,22 +2336,20 @@ public com.google.protobuf.ByteString getScheduleBytes() {
      * 
* * string schedule = 7; - * * @param value The schedule to set. * @return This builder for chaining. */ - public Builder setSchedule(java.lang.String value) { + public Builder setSchedule( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schedule_ = value; onChanged(); return this; } /** - * - * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2571,18 +2367,15 @@ public Builder setSchedule(java.lang.String value) {
      * 
* * string schedule = 7; - * * @return This builder for chaining. */ public Builder clearSchedule() { - + schedule_ = getDefaultInstance().getSchedule(); onChanged(); return this; } /** - * - * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2600,16 +2393,16 @@ public Builder clearSchedule() {
      * 
* * string schedule = 7; - * * @param value The bytes for schedule to set. * @return This builder for chaining. */ - public Builder setScheduleBytes(com.google.protobuf.ByteString value) { + public Builder setScheduleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schedule_ = value; onChanged(); return this; @@ -2617,55 +2410,41 @@ public Builder setScheduleBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions scheduleOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> - scheduleOptionsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> scheduleOptionsBuilder_; /** - * - * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; - * * @return Whether the scheduleOptions field is set. */ public boolean hasScheduleOptions() { return scheduleOptionsBuilder_ != null || scheduleOptions_ != null; } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; - * * @return The scheduleOptions. */ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOptions() { if (scheduleOptionsBuilder_ == null) { - return scheduleOptions_ == null - ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() - : scheduleOptions_; + return scheduleOptions_ == null ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() : scheduleOptions_; } else { return scheduleOptionsBuilder_.getMessage(); } } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public Builder setScheduleOptions( - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { + public Builder setScheduleOptions(com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { if (scheduleOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2679,8 +2458,6 @@ public Builder setScheduleOptions( return this; } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
@@ -2699,22 +2476,17 @@ public Builder setScheduleOptions( return this; } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public Builder mergeScheduleOptions( - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { + public Builder mergeScheduleOptions(com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { if (scheduleOptionsBuilder_ == null) { if (scheduleOptions_ != null) { scheduleOptions_ = - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.newBuilder(scheduleOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.newBuilder(scheduleOptions_).mergeFrom(value).buildPartial(); } else { scheduleOptions_ = value; } @@ -2726,8 +2498,6 @@ public Builder mergeScheduleOptions( return this; } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
@@ -2746,42 +2516,33 @@ public Builder clearScheduleOptions() { return this; } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder - getScheduleOptionsBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder getScheduleOptionsBuilder() { + onChanged(); return getScheduleOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder - getScheduleOptionsOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getScheduleOptionsOrBuilder() { if (scheduleOptionsBuilder_ != null) { return scheduleOptionsBuilder_.getMessageOrBuilder(); } else { - return scheduleOptions_ == null - ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() - : scheduleOptions_; + return scheduleOptions_ == null ? + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() : scheduleOptions_; } } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
@@ -2789,26 +2550,21 @@ public Builder clearScheduleOptions() { * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> getScheduleOptionsFieldBuilder() { if (scheduleOptionsBuilder_ == null) { - scheduleOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder>( - getScheduleOptions(), getParentForChildren(), isClean()); + scheduleOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder>( + getScheduleOptions(), + getParentForChildren(), + isClean()); scheduleOptions_ = null; } return scheduleOptionsBuilder_; } - private int dataRefreshWindowDays_; + private int dataRefreshWindowDays_ ; /** - * - * *
      * The number of days to look back to automatically refresh the data.
      * For example, if `data_refresh_window_days = 10`, then every day
@@ -2819,7 +2575,6 @@ public Builder clearScheduleOptions() {
      * 
* * int32 data_refresh_window_days = 12; - * * @return The dataRefreshWindowDays. */ @java.lang.Override @@ -2827,8 +2582,6 @@ public int getDataRefreshWindowDays() { return dataRefreshWindowDays_; } /** - * - * *
      * The number of days to look back to automatically refresh the data.
      * For example, if `data_refresh_window_days = 10`, then every day
@@ -2839,19 +2592,16 @@ public int getDataRefreshWindowDays() {
      * 
* * int32 data_refresh_window_days = 12; - * * @param value The dataRefreshWindowDays to set. * @return This builder for chaining. */ public Builder setDataRefreshWindowDays(int value) { - + dataRefreshWindowDays_ = value; onChanged(); return this; } /** - * - * *
      * The number of days to look back to automatically refresh the data.
      * For example, if `data_refresh_window_days = 10`, then every day
@@ -2862,27 +2612,23 @@ public Builder setDataRefreshWindowDays(int value) {
      * 
* * int32 data_refresh_window_days = 12; - * * @return This builder for chaining. */ public Builder clearDataRefreshWindowDays() { - + dataRefreshWindowDays_ = 0; onChanged(); return this; } - private boolean disabled_; + private boolean disabled_ ; /** - * - * *
      * Is this config disabled. When set to true, no runs are scheduled
      * for a given transfer.
      * 
* * bool disabled = 13; - * * @return The disabled. */ @java.lang.Override @@ -2890,38 +2636,32 @@ public boolean getDisabled() { return disabled_; } /** - * - * *
      * Is this config disabled. When set to true, no runs are scheduled
      * for a given transfer.
      * 
* * bool disabled = 13; - * * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { - + disabled_ = value; onChanged(); return this; } /** - * - * *
      * Is this config disabled. When set to true, no runs are scheduled
      * for a given transfer.
      * 
* * bool disabled = 13; - * * @return This builder for chaining. */ public Builder clearDisabled() { - + disabled_ = false; onChanged(); return this; @@ -2929,58 +2669,39 @@ public Builder clearDisabled() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2996,17 +2717,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3017,21 +2735,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3043,15 +2757,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3065,64 +2775,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3130,58 +2824,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp nextRunTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - nextRunTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRunTimeBuilder_; /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextRunTime field is set. */ public boolean hasNextRunTime() { return nextRunTimeBuilder_ != null || nextRunTime_ != null; } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextRunTime. */ public com.google.protobuf.Timestamp getNextRunTime() { if (nextRunTimeBuilder_ == null) { - return nextRunTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRunTime_; + return nextRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRunTime_; } else { return nextRunTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setNextRunTime(com.google.protobuf.Timestamp value) { if (nextRunTimeBuilder_ == null) { @@ -3197,17 +2872,14 @@ public Builder setNextRunTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNextRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRunTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRunTimeBuilder_ == null) { nextRunTime_ = builderForValue.build(); onChanged(); @@ -3218,23 +2890,17 @@ public Builder setNextRunTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeNextRunTime(com.google.protobuf.Timestamp value) { if (nextRunTimeBuilder_ == null) { if (nextRunTime_ != null) { nextRunTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRunTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRunTime_).mergeFrom(value).buildPartial(); } else { nextRunTime_ = value; } @@ -3246,15 +2912,11 @@ public Builder mergeNextRunTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNextRunTime() { if (nextRunTimeBuilder_ == null) { @@ -3268,64 +2930,48 @@ public Builder clearNextRunTime() { return this; } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getNextRunTimeBuilder() { - + onChanged(); return getNextRunTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { if (nextRunTimeBuilder_ != null) { return nextRunTimeBuilder_.getMessageOrBuilder(); } else { - return nextRunTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRunTime_; + return nextRunTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : nextRunTime_; } } /** - * - * *
      * Output only. Next time when data transfer will run.
      * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getNextRunTimeFieldBuilder() { if (nextRunTimeBuilder_ == null) { - nextRunTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNextRunTime(), getParentForChildren(), isClean()); + nextRunTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNextRunTime(), + getParentForChildren(), + isClean()); nextRunTime_ = null; } return nextRunTimeBuilder_; @@ -3333,75 +2979,51 @@ public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = - com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3409,41 +3031,33 @@ public Builder setState(com.google.cloud.bigquery.datatransfer.v1.TransferState if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long userId_; + private long userId_ ; /** - * - * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; - * * @return The userId. */ @java.lang.Override @@ -3451,36 +3065,30 @@ public long getUserId() { return userId_; } /** - * - * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; - * * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId(long value) { - + userId_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; - * * @return This builder for chaining. */ public Builder clearUserId() { - + userId_ = 0L; onChanged(); return this; @@ -3488,20 +3096,18 @@ public Builder clearUserId() { private java.lang.Object datasetRegion_ = ""; /** - * - * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The datasetRegion. */ public java.lang.String getDatasetRegion() { java.lang.Object ref = datasetRegion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetRegion_ = s; return s; @@ -3510,21 +3116,20 @@ public java.lang.String getDatasetRegion() { } } /** - * - * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for datasetRegion. */ - public com.google.protobuf.ByteString getDatasetRegionBytes() { + public com.google.protobuf.ByteString + getDatasetRegionBytes() { java.lang.Object ref = datasetRegion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetRegion_ = b; return b; } else { @@ -3532,61 +3137,54 @@ public com.google.protobuf.ByteString getDatasetRegionBytes() { } } /** - * - * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The datasetRegion to set. * @return This builder for chaining. */ - public Builder setDatasetRegion(java.lang.String value) { + public Builder setDatasetRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetRegion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDatasetRegion() { - + datasetRegion_ = getDefaultInstance().getDatasetRegion(); onChanged(); return this; } /** - * - * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for datasetRegion to set. * @return This builder for chaining. */ - public Builder setDatasetRegionBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetRegion_ = value; onChanged(); return this; @@ -3594,8 +3192,6 @@ public Builder setDatasetRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object notificationPubsubTopic_ = ""; /** - * - * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3604,13 +3200,13 @@ public Builder setDatasetRegionBytes(com.google.protobuf.ByteString value) {
      * 
* * string notification_pubsub_topic = 15; - * * @return The notificationPubsubTopic. */ public java.lang.String getNotificationPubsubTopic() { java.lang.Object ref = notificationPubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; @@ -3619,8 +3215,6 @@ public java.lang.String getNotificationPubsubTopic() { } } /** - * - * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3629,14 +3223,15 @@ public java.lang.String getNotificationPubsubTopic() {
      * 
* * string notification_pubsub_topic = 15; - * * @return The bytes for notificationPubsubTopic. */ - public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString + getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -3644,8 +3239,6 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { } } /** - * - * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3654,22 +3247,20 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() {
      * 
* * string notification_pubsub_topic = 15; - * * @param value The notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopic(java.lang.String value) { + public Builder setNotificationPubsubTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationPubsubTopic_ = value; onChanged(); return this; } /** - * - * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3678,18 +3269,15 @@ public Builder setNotificationPubsubTopic(java.lang.String value) {
      * 
* * string notification_pubsub_topic = 15; - * * @return This builder for chaining. */ public Builder clearNotificationPubsubTopic() { - + notificationPubsubTopic_ = getDefaultInstance().getNotificationPubsubTopic(); onChanged(); return this; } /** - * - * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3698,16 +3286,16 @@ public Builder clearNotificationPubsubTopic() {
      * 
* * string notification_pubsub_topic = 15; - * * @param value The bytes for notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value) { + public Builder setNotificationPubsubTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationPubsubTopic_ = value; onChanged(); return this; @@ -3715,49 +3303,36 @@ public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString va private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> - emailPreferencesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> emailPreferencesBuilder_; /** - * - * *
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
      * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; - * * @return Whether the emailPreferences field is set. */ public boolean hasEmailPreferences() { return emailPreferencesBuilder_ != null || emailPreferences_ != null; } /** - * - * *
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
      * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; - * * @return The emailPreferences. */ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { if (emailPreferencesBuilder_ == null) { - return emailPreferences_ == null - ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() - : emailPreferences_; + return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; } else { return emailPreferencesBuilder_.getMessage(); } } /** - * - * *
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3765,8 +3340,7 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPrefer
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public Builder setEmailPreferences(
-        com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
+    public Builder setEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
       if (emailPreferencesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3780,8 +3354,6 @@ public Builder setEmailPreferences(
       return this;
     }
     /**
-     *
-     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3801,8 +3373,6 @@ public Builder setEmailPreferences(
       return this;
     }
     /**
-     *
-     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3810,15 +3380,11 @@ public Builder setEmailPreferences(
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public Builder mergeEmailPreferences(
-        com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
+    public Builder mergeEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
       if (emailPreferencesBuilder_ == null) {
         if (emailPreferences_ != null) {
           emailPreferences_ =
-              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder(
-                      emailPreferences_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder(emailPreferences_).mergeFrom(value).buildPartial();
         } else {
           emailPreferences_ = value;
         }
@@ -3830,8 +3396,6 @@ public Builder mergeEmailPreferences(
       return this;
     }
     /**
-     *
-     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3851,8 +3415,6 @@ public Builder clearEmailPreferences() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3860,15 +3422,12 @@ public Builder clearEmailPreferences() {
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder
-        getEmailPreferencesBuilder() {
-
+    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder getEmailPreferencesBuilder() {
+      
       onChanged();
       return getEmailPreferencesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3876,19 +3435,15 @@ public Builder clearEmailPreferences() {
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder
-        getEmailPreferencesOrBuilder() {
+    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() {
       if (emailPreferencesBuilder_ != null) {
         return emailPreferencesBuilder_.getMessageOrBuilder();
       } else {
-        return emailPreferences_ == null
-            ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance()
-            : emailPreferences_;
+        return emailPreferences_ == null ?
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_;
       }
     }
     /**
-     *
-     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3897,17 +3452,14 @@ public Builder clearEmailPreferences() {
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences,
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder,
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>
+        com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> 
         getEmailPreferencesFieldBuilder() {
       if (emailPreferencesBuilder_ == null) {
-        emailPreferencesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.datatransfer.v1.EmailPreferences,
-                com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder,
-                com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>(
-                getEmailPreferences(), getParentForChildren(), isClean());
+        emailPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>(
+                getEmailPreferences(),
+                getParentForChildren(),
+                isClean());
         emailPreferences_ = null;
       }
       return emailPreferencesBuilder_;
@@ -3915,64 +3467,45 @@ public Builder clearEmailPreferences() {
 
     private com.google.cloud.bigquery.datatransfer.v1.UserInfo ownerInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.datatransfer.v1.UserInfo,
-            com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder,
-            com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder>
-        ownerInfoBuilder_;
+        com.google.cloud.bigquery.datatransfer.v1.UserInfo, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder> ownerInfoBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ownerInfo field is set. */ public boolean hasOwnerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ownerInfo. */ public com.google.cloud.bigquery.datatransfer.v1.UserInfo getOwnerInfo() { if (ownerInfoBuilder_ == null) { - return ownerInfo_ == null - ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() - : ownerInfo_; + return ownerInfo_ == null ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; } else { return ownerInfoBuilder_.getMessage(); } } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo value) { if (ownerInfoBuilder_ == null) { @@ -3988,17 +3521,13 @@ public Builder setOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo v return this; } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOwnerInfo( com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder builderForValue) { @@ -4012,28 +3541,21 @@ public Builder setOwnerInfo( return this; } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo value) { if (ownerInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && ownerInfo_ != null - && ownerInfo_ - != com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + ownerInfo_ != null && + ownerInfo_ != com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) { ownerInfo_ = - com.google.cloud.bigquery.datatransfer.v1.UserInfo.newBuilder(ownerInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.UserInfo.newBuilder(ownerInfo_).mergeFrom(value).buildPartial(); } else { ownerInfo_ = value; } @@ -4045,17 +3567,13 @@ public Builder mergeOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo return this; } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOwnerInfo() { if (ownerInfoBuilder_ == null) { @@ -4068,17 +3586,13 @@ public Builder clearOwnerInfo() { return this; } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder getOwnerInfoBuilder() { bitField0_ |= 0x00000001; @@ -4086,59 +3600,47 @@ public com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder getOwnerInfoBu return getOwnerInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder getOwnerInfoOrBuilder() { if (ownerInfoBuilder_ != null) { return ownerInfoBuilder_.getMessageOrBuilder(); } else { - return ownerInfo_ == null - ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() - : ownerInfo_; + return ownerInfo_ == null ? + com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; } } /** - * - * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.UserInfo, - com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, - com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.UserInfo, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder> getOwnerInfoFieldBuilder() { if (ownerInfoBuilder_ == null) { - ownerInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.UserInfo, - com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, - com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder>( - getOwnerInfo(), getParentForChildren(), isClean()); + ownerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.UserInfo, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder>( + getOwnerInfo(), + getParentForChildren(), + isClean()); ownerInfo_ = null; } return ownerInfoBuilder_; } - @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); } @@ -4148,12 +3650,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.TransferConfig) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferConfig) private static final com.google.cloud.bigquery.datatransfer.v1.TransferConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.TransferConfig(); } @@ -4162,27 +3664,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferConfig 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 TransferConfig 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; @@ -4197,4 +3699,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java new file mode 100644 index 000000000000..50b7ba6db3d7 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java @@ -0,0 +1,314 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datatransfer.v1; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TransferConfigName implements ResourceName { + private static final PathTemplate PROJECT_TRANSFER_CONFIG = + PathTemplate.createWithoutUrlEncoding("projects/{project}/transferConfigs/{transfer_config}"); + private static final PathTemplate PROJECT_LOCATION_TRANSFER_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/transferConfigs/{transfer_config}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String transferConfig; + private final String location; + + @Deprecated + protected TransferConfigName() { + project = null; + transferConfig = null; + location = null; + } + + private TransferConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); + location = null; + pathTemplate = PROJECT_TRANSFER_CONFIG; + } + + private TransferConfigName(ProjectLocationTransferConfigBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); + pathTemplate = PROJECT_LOCATION_TRANSFER_CONFIG; + } + + public String getProject() { + return project; + } + + public String getTransferConfig() { + return transferConfig; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectTransferConfigBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationTransferConfigBuilder newProjectLocationTransferConfigBuilder() { + return new ProjectLocationTransferConfigBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TransferConfigName of(String project, String transferConfig) { + return newBuilder().setProject(project).setTransferConfig(transferConfig).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static TransferConfigName ofProjectTransferConfigName( + String project, String transferConfig) { + return newBuilder().setProject(project).setTransferConfig(transferConfig).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static TransferConfigName ofProjectLocationTransferConfigName( + String project, String location, String transferConfig) { + return newProjectLocationTransferConfigBuilder() + .setProject(project) + .setLocation(location) + .setTransferConfig(transferConfig) + .build(); + } + + public static String format(String project, String transferConfig) { + return newBuilder().setProject(project).setTransferConfig(transferConfig).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectTransferConfigName(String project, String transferConfig) { + return newBuilder().setProject(project).setTransferConfig(transferConfig).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationTransferConfigName( + String project, String location, String transferConfig) { + return newProjectLocationTransferConfigBuilder() + .setProject(project) + .setLocation(location) + .setTransferConfig(transferConfig) + .build() + .toString(); + } + + public static TransferConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_TRANSFER_CONFIG.matches(formattedString)) { + Map matchMap = PROJECT_TRANSFER_CONFIG.match(formattedString); + return ofProjectTransferConfigName(matchMap.get("project"), matchMap.get("transfer_config")); + } else if (PROJECT_LOCATION_TRANSFER_CONFIG.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_TRANSFER_CONFIG.match(formattedString); + return ofProjectLocationTransferConfigName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("transfer_config")); + } + throw new ValidationException("TransferConfigName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TransferConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_TRANSFER_CONFIG.matches(formattedString) + || PROJECT_LOCATION_TRANSFER_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (transferConfig != null) { + fieldMapBuilder.put("transfer_config", transferConfig); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TransferConfigName that = ((TransferConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.transferConfig, that.transferConfig) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(transferConfig); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/transferConfigs/{transfer_config}. */ + public static class Builder { + private String project; + private String transferConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getTransferConfig() { + return transferConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTransferConfig(String transferConfig) { + this.transferConfig = transferConfig; + return this; + } + + private Builder(TransferConfigName transferConfigName) { + Preconditions.checkArgument( + Objects.equals(transferConfigName.pathTemplate, PROJECT_TRANSFER_CONFIG), + "toBuilder is only supported when TransferConfigName has the pattern of projects/{project}/transferConfigs/{transfer_config}"); + this.project = transferConfigName.project; + this.transferConfig = transferConfigName.transferConfig; + } + + public TransferConfigName build() { + return new TransferConfigName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/transferConfigs/{transfer_config}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationTransferConfigBuilder { + private String project; + private String location; + private String transferConfig; + + protected ProjectLocationTransferConfigBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTransferConfig() { + return transferConfig; + } + + public ProjectLocationTransferConfigBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationTransferConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationTransferConfigBuilder setTransferConfig(String transferConfig) { + this.transferConfig = transferConfig; + return this; + } + + public TransferConfigName build() { + return new TransferConfigName(this); + } + } +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java similarity index 80% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java index 26044a08f83b..873732d72c50 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface TransferConfigOrBuilder - extends +public interface TransferConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.TransferConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -36,13 +18,10 @@ public interface TransferConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -53,101 +32,85 @@ public interface TransferConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; - * * @return Whether the destinationDatasetId field is set. */ boolean hasDestinationDatasetId(); /** - * - * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; - * * @return The destinationDatasetId. */ java.lang.String getDestinationDatasetId(); /** - * - * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; - * * @return The bytes for destinationDatasetId. */ - com.google.protobuf.ByteString getDestinationDatasetIdBytes(); + com.google.protobuf.ByteString + getDestinationDatasetIdBytes(); /** - * - * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
-   * Data source id. Cannot be changed once data transfer is created.
+   * Data source ID. This cannot be changed once data transfer is created. The
+   * full list of available data source IDs can be returned through an API call:
+   * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
    * 
* * string data_source_id = 5; - * * @return The dataSourceId. */ java.lang.String getDataSourceId(); /** - * - * *
-   * Data source id. Cannot be changed once data transfer is created.
+   * Data source ID. This cannot be changed once data transfer is created. The
+   * full list of available data source IDs can be returned through an API call:
+   * https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
    * 
* * string data_source_id = 5; - * * @return The bytes for dataSourceId. */ - com.google.protobuf.ByteString getDataSourceIdBytes(); + com.google.protobuf.ByteString + getDataSourceIdBytes(); /** - * - * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -156,13 +119,10 @@ public interface TransferConfigOrBuilder
    * 
* * .google.protobuf.Struct params = 9; - * * @return Whether the params field is set. */ boolean hasParams(); /** - * - * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -171,13 +131,10 @@ public interface TransferConfigOrBuilder
    * 
* * .google.protobuf.Struct params = 9; - * * @return The params. */ com.google.protobuf.Struct getParams(); /** - * - * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -190,8 +147,6 @@ public interface TransferConfigOrBuilder
   com.google.protobuf.StructOrBuilder getParamsOrBuilder();
 
   /**
-   *
-   *
    * 
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -209,13 +164,10 @@ public interface TransferConfigOrBuilder
    * 
* * string schedule = 7; - * * @return The schedule. */ java.lang.String getSchedule(); /** - * - * *
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -233,38 +185,30 @@ public interface TransferConfigOrBuilder
    * 
* * string schedule = 7; - * * @return The bytes for schedule. */ - com.google.protobuf.ByteString getScheduleBytes(); + com.google.protobuf.ByteString + getScheduleBytes(); /** - * - * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; - * * @return Whether the scheduleOptions field is set. */ boolean hasScheduleOptions(); /** - * - * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; - * * @return The scheduleOptions. */ com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOptions(); /** - * - * *
    * Options customizing the data transfer schedule.
    * 
@@ -274,8 +218,6 @@ public interface TransferConfigOrBuilder com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getScheduleOptionsOrBuilder(); /** - * - * *
    * The number of days to look back to automatically refresh the data.
    * For example, if `data_refresh_window_days = 10`, then every day
@@ -286,174 +228,125 @@ public interface TransferConfigOrBuilder
    * 
* * int32 data_refresh_window_days = 12; - * * @return The dataRefreshWindowDays. */ int getDataRefreshWindowDays(); /** - * - * *
    * Is this config disabled. When set to true, no runs are scheduled
    * for a given transfer.
    * 
* * bool disabled = 13; - * * @return The disabled. */ boolean getDisabled(); /** - * - * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Next time when data transfer will run.
    * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextRunTime field is set. */ boolean hasNextRunTime(); /** - * - * *
    * Output only. Next time when data transfer will run.
    * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextRunTime. */ com.google.protobuf.Timestamp getNextRunTime(); /** - * - * *
    * Output only. Next time when data transfer will run.
    * 
* - * - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder(); /** - * - * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.bigquery.datatransfer.v1.TransferState getState(); /** - * - * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; - * * @return The userId. */ long getUserId(); /** - * - * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The datasetRegion. */ java.lang.String getDatasetRegion(); /** - * - * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for datasetRegion. */ - com.google.protobuf.ByteString getDatasetRegionBytes(); + com.google.protobuf.ByteString + getDatasetRegionBytes(); /** - * - * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -462,13 +355,10 @@ public interface TransferConfigOrBuilder
    * 
* * string notification_pubsub_topic = 15; - * * @return The notificationPubsubTopic. */ java.lang.String getNotificationPubsubTopic(); /** - * - * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -477,40 +367,32 @@ public interface TransferConfigOrBuilder
    * 
* * string notification_pubsub_topic = 15; - * * @return The bytes for notificationPubsubTopic. */ - com.google.protobuf.ByteString getNotificationPubsubTopicBytes(); + com.google.protobuf.ByteString + getNotificationPubsubTopicBytes(); /** - * - * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; - * * @return Whether the emailPreferences field is set. */ boolean hasEmailPreferences(); /** - * - * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; - * * @return The emailPreferences. */ com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences(); /** - * - * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
@@ -518,56 +400,40 @@ public interface TransferConfigOrBuilder
    *
    * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
    */
-  com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder
-      getEmailPreferencesOrBuilder();
+  com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ownerInfo field is set. */ boolean hasOwnerInfo(); /** - * - * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ownerInfo. */ com.google.cloud.bigquery.datatransfer.v1.UserInfo getOwnerInfo(); /** - * - * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder getOwnerInfoOrBuilder(); - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.DestinationCase - getDestinationCase(); + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.DestinationCase getDestinationCase(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java similarity index 68% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java index a6b008390b79..d262e22acf8c 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Represents a user facing message for a particular data transfer run.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferMessage} */ -public final class TransferMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransferMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.TransferMessage) TransferMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransferMessage.newBuilder() to construct. private TransferMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransferMessage() { severity_ = 0; messageText_ = ""; @@ -44,43 +26,39 @@ private TransferMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransferMessage(); } @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.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); } /** - * - * *
    * Represents data transfer user facing message severity.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity} */ - public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { + public enum MessageSeverity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No severity specified.
      * 
@@ -89,8 +67,6 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { */ MESSAGE_SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Informational message.
      * 
@@ -99,8 +75,6 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { */ INFO(1), /** - * - * *
      * Warning message.
      * 
@@ -109,8 +83,6 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(2), /** - * - * *
      * Error message.
      * 
@@ -122,8 +94,6 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * No severity specified.
      * 
@@ -132,8 +102,6 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MESSAGE_SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Informational message.
      * 
@@ -142,8 +110,6 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INFO_VALUE = 1; /** - * - * *
      * Warning message.
      * 
@@ -152,8 +118,6 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 2; /** - * - * *
      * Error message.
      * 
@@ -162,6 +126,7 @@ public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -186,47 +151,41 @@ public static MessageSeverity valueOf(int value) { */ public static MessageSeverity forNumber(int value) { switch (value) { - case 0: - return MESSAGE_SEVERITY_UNSPECIFIED; - case 1: - return INFO; - case 2: - return WARNING; - case 3: - return ERROR; - default: - return null; + case 0: return MESSAGE_SEVERITY_UNSPECIFIED; + case 1: return INFO; + case 2: return WARNING; + case 3: return ERROR; + 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 - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MessageSeverity findValueByNumber(int number) { - return MessageSeverity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + MessageSeverity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MessageSeverity findValueByNumber(int number) { + return MessageSeverity.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.datatransfer.v1.TransferMessage.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDescriptor().getEnumTypes().get(0); } private static final MessageSeverity[] VALUES = values(); @@ -234,7 +193,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MessageSeverity 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; @@ -254,14 +214,11 @@ private MessageSeverity(int value) { public static final int MESSAGE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp messageTime_; /** - * - * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; - * * @return Whether the messageTime field is set. */ @java.lang.Override @@ -269,14 +226,11 @@ public boolean hasMessageTime() { return messageTime_ != null; } /** - * - * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; - * * @return The messageTime. */ @java.lang.Override @@ -284,8 +238,6 @@ public com.google.protobuf.Timestamp getMessageTime() { return messageTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : messageTime_; } /** - * - * *
    * Time when message was logged.
    * 
@@ -300,55 +252,38 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 2; private int severity_; /** - * - * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @return The severity. */ - @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { + @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf( - severity_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(severity_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; } public static final int MESSAGE_TEXT_FIELD_NUMBER = 3; private volatile java.lang.Object messageText_; /** - * - * *
    * Message text.
    * 
* * string message_text = 3; - * * @return The messageText. */ @java.lang.Override @@ -357,29 +292,29 @@ public java.lang.String getMessageText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageText_ = s; return s; } } /** - * - * *
    * Message text.
    * 
* * string message_text = 3; - * * @return The bytes for messageText. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageTextBytes() { + public com.google.protobuf.ByteString + getMessageTextBytes() { java.lang.Object ref = messageText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); messageText_ = b; return b; } else { @@ -388,7 +323,6 @@ public com.google.protobuf.ByteString getMessageTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,14 +334,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 (messageTime_ != null) { output.writeMessage(1, getMessageTime()); } - if (severity_ - != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity - .MESSAGE_SEVERITY_UNSPECIFIED - .getNumber()) { + if (severity_ != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.MESSAGE_SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageText_)) { @@ -423,13 +355,12 @@ public int getSerializedSize() { size = 0; if (messageTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessageTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMessageTime()); } - if (severity_ - != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity - .MESSAGE_SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_); + if (severity_ != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.MESSAGE_SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageText_); @@ -442,20 +373,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.datatransfer.v1.TransferMessage)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.TransferMessage other = - (com.google.cloud.bigquery.datatransfer.v1.TransferMessage) obj; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage other = (com.google.cloud.bigquery.datatransfer.v1.TransferMessage) obj; if (hasMessageTime() != other.hasMessageTime()) return false; if (hasMessageTime()) { - if (!getMessageTime().equals(other.getMessageTime())) return false; + if (!getMessageTime() + .equals(other.getMessageTime())) return false; } if (severity_ != other.severity_) return false; - if (!getMessageText().equals(other.getMessageText())) return false; + if (!getMessageText() + .equals(other.getMessageText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -481,136 +413,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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; } /** - * - * *
    * Represents a user facing message for a particular data transfer run.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferMessage} */ - 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.datatransfer.v1.TransferMessage) com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.TransferMessage.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(); @@ -628,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } @java.lang.Override @@ -649,8 +574,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.TransferMessage result = - new com.google.cloud.bigquery.datatransfer.v1.TransferMessage(this); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage result = new com.google.cloud.bigquery.datatransfer.v1.TransferMessage(this); if (messageTimeBuilder_ == null) { result.messageTime_ = messageTime_; } else { @@ -666,39 +590,38 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferMessage) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferMessage) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferMessage)other); } else { super.mergeFrom(other); return this; @@ -706,8 +629,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferMessage other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()) return this; if (other.hasMessageTime()) { mergeMessageTime(other.getMessageTime()); } @@ -744,31 +666,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getMessageTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 16: - { - severity_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - messageText_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getMessageTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 16: { + severity_ = input.readEnum(); + + break; + } // case 16 + case 26: { + messageText_ = input.readStringRequireUtf8(); + + 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) { @@ -781,47 +701,34 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp messageTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - messageTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> messageTimeBuilder_; /** - * - * *
      * Time when message was logged.
      * 
* * .google.protobuf.Timestamp message_time = 1; - * * @return Whether the messageTime field is set. */ public boolean hasMessageTime() { return messageTimeBuilder_ != null || messageTime_ != null; } /** - * - * *
      * Time when message was logged.
      * 
* * .google.protobuf.Timestamp message_time = 1; - * * @return The messageTime. */ public com.google.protobuf.Timestamp getMessageTime() { if (messageTimeBuilder_ == null) { - return messageTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : messageTime_; + return messageTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : messageTime_; } else { return messageTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when message was logged.
      * 
@@ -842,15 +749,14 @@ public Builder setMessageTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when message was logged.
      * 
* * .google.protobuf.Timestamp message_time = 1; */ - public Builder setMessageTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setMessageTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (messageTimeBuilder_ == null) { messageTime_ = builderForValue.build(); onChanged(); @@ -861,8 +767,6 @@ public Builder setMessageTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * Time when message was logged.
      * 
@@ -873,9 +777,7 @@ public Builder mergeMessageTime(com.google.protobuf.Timestamp value) { if (messageTimeBuilder_ == null) { if (messageTime_ != null) { messageTime_ = - com.google.protobuf.Timestamp.newBuilder(messageTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(messageTime_).mergeFrom(value).buildPartial(); } else { messageTime_ = value; } @@ -887,8 +789,6 @@ public Builder mergeMessageTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when message was logged.
      * 
@@ -907,8 +807,6 @@ public Builder clearMessageTime() { return this; } /** - * - * *
      * Time when message was logged.
      * 
@@ -916,13 +814,11 @@ public Builder clearMessageTime() { * .google.protobuf.Timestamp message_time = 1; */ public com.google.protobuf.Timestamp.Builder getMessageTimeBuilder() { - + onChanged(); return getMessageTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when message was logged.
      * 
@@ -933,14 +829,11 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { if (messageTimeBuilder_ != null) { return messageTimeBuilder_.getMessageOrBuilder(); } else { - return messageTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : messageTime_; + return messageTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : messageTime_; } } /** - * - * *
      * Time when message was logged.
      * 
@@ -948,17 +841,14 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { * .google.protobuf.Timestamp message_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMessageTimeFieldBuilder() { if (messageTimeBuilder_ == null) { - messageTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getMessageTime(), getParentForChildren(), isClean()); + messageTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getMessageTime(), + getParentForChildren(), + isClean()); messageTime_ = null; } return messageTimeBuilder_; @@ -966,99 +856,73 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { private int severity_ = 0; /** - * - * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** - * - * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @return The severity. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf( - severity_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(severity_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; } /** - * - * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @param value The severity to set. * @return This builder for chaining. */ - public Builder setSeverity( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { + public Builder setSeverity(com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -1066,20 +930,18 @@ public Builder clearSeverity() { private java.lang.Object messageText_ = ""; /** - * - * *
      * Message text.
      * 
* * string message_text = 3; - * * @return The messageText. */ public java.lang.String getMessageText() { java.lang.Object ref = messageText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageText_ = s; return s; @@ -1088,21 +950,20 @@ public java.lang.String getMessageText() { } } /** - * - * *
      * Message text.
      * 
* * string message_text = 3; - * * @return The bytes for messageText. */ - public com.google.protobuf.ByteString getMessageTextBytes() { + public com.google.protobuf.ByteString + getMessageTextBytes() { java.lang.Object ref = messageText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); messageText_ = b; return b; } else { @@ -1110,68 +971,61 @@ public com.google.protobuf.ByteString getMessageTextBytes() { } } /** - * - * *
      * Message text.
      * 
* * string message_text = 3; - * * @param value The messageText to set. * @return This builder for chaining. */ - public Builder setMessageText(java.lang.String value) { + public Builder setMessageText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + messageText_ = value; onChanged(); return this; } /** - * - * *
      * Message text.
      * 
* * string message_text = 3; - * * @return This builder for chaining. */ public Builder clearMessageText() { - + messageText_ = getDefaultInstance().getMessageText(); onChanged(); return this; } /** - * - * *
      * Message text.
      * 
* * string message_text = 3; - * * @param value The bytes for messageText to set. * @return This builder for chaining. */ - public Builder setMessageTextBytes(com.google.protobuf.ByteString value) { + public Builder setMessageTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + messageText_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1181,12 +1035,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.TransferMessage) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferMessage) private static final com.google.cloud.bigquery.datatransfer.v1.TransferMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.TransferMessage(); } @@ -1195,27 +1049,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferMessage 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 TransferMessage 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; @@ -1230,4 +1084,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java similarity index 66% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java index 3ede265df721..0aa8657f9b94 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java @@ -1,55 +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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface TransferMessageOrBuilder - extends +public interface TransferMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.TransferMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; - * * @return Whether the messageTime field is set. */ boolean hasMessageTime(); /** - * - * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; - * * @return The messageTime. */ com.google.protobuf.Timestamp getMessageTime(); /** - * - * *
    * Time when message was logged.
    * 
@@ -59,54 +35,41 @@ public interface TransferMessageOrBuilder com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder(); /** - * - * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; * @return The severity. */ com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity(); /** - * - * *
    * Message text.
    * 
* * string message_text = 3; - * * @return The messageText. */ java.lang.String getMessageText(); /** - * - * *
    * Message text.
    * 
* * string message_text = 3; - * * @return The bytes for messageText. */ - com.google.protobuf.ByteString getMessageTextBytes(); + com.google.protobuf.ByteString + getMessageTextBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java new file mode 100644 index 000000000000..4fa6d59abece --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java @@ -0,0 +1,193 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/transfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public final class TransferProto { + private TransferProto() {} + 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_datatransfer_v1_EmailPreferences_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_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/datatransfer/v1/" + + "transfer.proto\022%google.cloud.bigquery.da" + + "tatransfer.v1\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032\034googl" + + "e/protobuf/struct.proto\032\037google/protobuf" + + "/timestamp.proto\032\027google/rpc/status.prot" + + "o\"0\n\020EmailPreferences\022\034\n\024enable_failure_" + + "email\030\001 \001(\010\"\220\001\n\017ScheduleOptions\022\037\n\027disab" + + "le_auto_scheduling\030\003 \001(\010\022.\n\nstart_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022,\n\010end_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"(" + + "\n\010UserInfo\022\022\n\005email\030\001 \001(\tH\000\210\001\001B\010\n\006_email" + + "\"\265\007\n\016TransferConfig\022\014\n\004name\030\001 \001(\t\022 \n\026des" + + "tination_dataset_id\030\002 \001(\tH\000\022\024\n\014display_n" + + "ame\030\003 \001(\t\022\026\n\016data_source_id\030\005 \001(\t\022\'\n\006par" + + "ams\030\t \001(\0132\027.google.protobuf.Struct\022\020\n\010sc" + + "hedule\030\007 \001(\t\022P\n\020schedule_options\030\030 \001(\01326" + + ".google.cloud.bigquery.datatransfer.v1.S" + + "cheduleOptions\022 \n\030data_refresh_window_da" + + "ys\030\014 \001(\005\022\020\n\010disabled\030\r \001(\010\0224\n\013update_tim" + + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0226\n\rnext_run_time\030\010 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022H\n\005state\030\n \001(\01624.google" + + ".cloud.bigquery.datatransfer.v1.Transfer" + + "StateB\003\340A\003\022\017\n\007user_id\030\013 \001(\003\022\033\n\016dataset_r" + + "egion\030\016 \001(\tB\003\340A\003\022!\n\031notification_pubsub_" + + "topic\030\017 \001(\t\022R\n\021email_preferences\030\022 \001(\01327" + + ".google.cloud.bigquery.datatransfer.v1.E" + + "mailPreferences\022M\n\nowner_info\030\033 \001(\0132/.go" + + "ogle.cloud.bigquery.datatransfer.v1.User" + + "InfoB\003\340A\003H\001\210\001\001:\271\001\352A\265\001\n2bigquerydatatrans" + + "fer.googleapis.com/TransferConfig\0224proje" + + "cts/{project}/transferConfigs/{transfer_" + + "config}\022Iprojects/{project}/locations/{l" + + "ocation}/transferConfigs/{transfer_confi" + + "g}B\r\n\013destinationB\r\n\013_owner_info\"\372\006\n\013Tra" + + "nsferRun\022\014\n\004name\030\001 \001(\t\0221\n\rschedule_time\030" + + "\003 \001(\0132\032.google.protobuf.Timestamp\022,\n\010run" + + "_time\030\n \001(\0132\032.google.protobuf.Timestamp\022" + + "(\n\014error_status\030\025 \001(\0132\022.google.rpc.Statu" + + "s\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + ",\n\006params\030\t \001(\0132\027.google.protobuf.Struct" + + "B\003\340A\003\022%\n\026destination_dataset_id\030\002 \001(\tB\003\340" + + "A\003H\000\022\033\n\016data_source_id\030\007 \001(\tB\003\340A\003\022C\n\005sta" + + "te\030\010 \001(\01624.google.cloud.bigquery.datatra" + + "nsfer.v1.TransferState\022\017\n\007user_id\030\013 \001(\003\022" + + "\025\n\010schedule\030\014 \001(\tB\003\340A\003\022&\n\031notification_p" + + "ubsub_topic\030\027 \001(\tB\003\340A\003\022W\n\021email_preferen" + + "ces\030\031 \001(\01327.google.cloud.bigquery.datatr" + + "ansfer.v1.EmailPreferencesB\003\340A\003:\304\001\352A\300\001\n\'" + + "bigquerydatatransfer.googleapis.com/Run\022" + + "?projects/{project}/transferConfigs/{tra" + + "nsfer_config}/runs/{run}\022Tprojects/{proj" + + "ect}/locations/{location}/transferConfig" + + "s/{transfer_config}/runs/{run}B\r\n\013destin" + + "ation\"\212\002\n\017TransferMessage\0220\n\014message_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022X\n\010s" + + "everity\030\002 \001(\0162F.google.cloud.bigquery.da" + + "tatransfer.v1.TransferMessage.MessageSev" + + "erity\022\024\n\014message_text\030\003 \001(\t\"U\n\017MessageSe" + + "verity\022 \n\034MESSAGE_SEVERITY_UNSPECIFIED\020\000" + + "\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003*K\n\014Tr" + + "ansferType\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020" + + "\000\022\t\n\005BATCH\020\001\022\r\n\tSTREAMING\020\002\032\002\030\001*s\n\rTrans" + + "ferState\022\036\n\032TRANSFER_STATE_UNSPECIFIED\020\000" + + "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + + "\004\022\n\n\006FAILED\020\005\022\r\n\tCANCELLED\020\006B\223\002\n)com.goo" + + "gle.cloud.bigquery.datatransfer.v1B\rTran" + + "sferProtoP\001ZQgoogle.golang.org/genproto/" + + "googleapis/cloud/bigquery/datatransfer/v" + + "1;datatransfer\242\002\005GCBDT\252\002%Google.Cloud.Bi" + + "gQuery.DataTransfer.V1\312\002%Google\\Cloud\\Bi" + + "gQuery\\DataTransfer\\V1\352\002)Google::Cloud::" + + "Bigquery::DataTransfer::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor, + new java.lang.String[] { "EnableFailureEmail", }); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor, + new java.lang.String[] { "DisableAutoScheduling", "StartTime", "EndTime", }); + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor, + new java.lang.String[] { "Email", "Email", }); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor, + new java.lang.String[] { "Name", "DestinationDatasetId", "DisplayName", "DataSourceId", "Params", "Schedule", "ScheduleOptions", "DataRefreshWindowDays", "Disabled", "UpdateTime", "NextRunTime", "State", "UserId", "DatasetRegion", "NotificationPubsubTopic", "EmailPreferences", "OwnerInfo", "Destination", "OwnerInfo", }); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor, + new java.lang.String[] { "Name", "ScheduleTime", "RunTime", "ErrorStatus", "StartTime", "EndTime", "UpdateTime", "Params", "DestinationDatasetId", "DataSourceId", "State", "UserId", "Schedule", "NotificationPubsubTopic", "EmailPreferences", "Destination", }); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor, + new java.lang.String[] { "MessageTime", "Severity", "MessageText", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java similarity index 74% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java index d3d123d8956b..8b5af50e9521 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Represents a data transfer run.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferRun} */ -public final class TransferRun extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransferRun extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.TransferRun) TransferRunOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransferRun.newBuilder() to construct. private TransferRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransferRun() { name_ = ""; dataSourceId_ = ""; @@ -47,41 +29,37 @@ private TransferRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransferRun(); } @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.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DESTINATION_DATASET_ID(2), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -97,29 +75,25 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 2: - return DESTINATION_DATASET_ID; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 2: return DESTINATION_DATASET_ID; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -128,7 +102,6 @@ public DestinationCase getDestinationCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -137,15 +110,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -154,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,14 +146,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; - * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -188,25 +158,18 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; - * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
    * Minimum time after which a transfer run can be started.
    * 
@@ -221,15 +184,12 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { public static final int RUN_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp runTime_; /** - * - * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; - * * @return Whether the runTime field is set. */ @java.lang.Override @@ -237,15 +197,12 @@ public boolean hasRunTime() { return runTime_ != null; } /** - * - * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; - * * @return The runTime. */ @java.lang.Override @@ -253,8 +210,6 @@ public com.google.protobuf.Timestamp getRunTime() { return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; } /** - * - * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
@@ -270,14 +225,11 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
   public static final int ERROR_STATUS_FIELD_NUMBER = 21;
   private com.google.rpc.Status errorStatus_;
   /**
-   *
-   *
    * 
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; - * * @return Whether the errorStatus field is set. */ @java.lang.Override @@ -285,14 +237,11 @@ public boolean hasErrorStatus() { return errorStatus_ != null; } /** - * - * *
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; - * * @return The errorStatus. */ @java.lang.Override @@ -300,8 +249,6 @@ public com.google.rpc.Status getErrorStatus() { return errorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : errorStatus_; } /** - * - * *
    * Status of the transfer run.
    * 
@@ -316,16 +263,12 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -333,16 +276,12 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -350,15 +289,12 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -368,16 +304,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -385,16 +317,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -402,15 +330,12 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -420,15 +345,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -436,15 +357,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -452,14 +369,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -469,8 +383,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int PARAMS_FIELD_NUMBER = 9; private com.google.protobuf.Struct params_; /** - * - * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -479,7 +391,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the params field is set. */ @java.lang.Override @@ -487,8 +398,6 @@ public boolean hasParams() { return params_ != null; } /** - * - * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -497,7 +406,6 @@ public boolean hasParams() {
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The params. */ @java.lang.Override @@ -505,8 +413,6 @@ public com.google.protobuf.Struct getParams() { return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; } /** - * - * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -523,28 +429,22 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
 
   public static final int DESTINATION_DATASET_ID_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the destinationDatasetId field is set. */ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** - * - * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The destinationDatasetId. */ public java.lang.String getDestinationDatasetId() { @@ -555,7 +455,8 @@ public java.lang.String getDestinationDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -564,24 +465,23 @@ public java.lang.String getDestinationDatasetId() { } } /** - * - * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for destinationDatasetId. */ - public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString + getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -594,14 +494,11 @@ public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { public static final int DATA_SOURCE_ID_FIELD_NUMBER = 7; private volatile java.lang.Object dataSourceId_; /** - * - * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The dataSourceId. */ @java.lang.Override @@ -610,29 +507,29 @@ public java.lang.String getDataSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; } } /** - * - * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for dataSourceId. */ @java.lang.Override - public com.google.protobuf.ByteString getDataSourceIdBytes() { + public com.google.protobuf.ByteString + getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -643,52 +540,38 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() { public static final int STATE_FIELD_NUMBER = 8; private int state_; /** - * - * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { + @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = - com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } public static final int USER_ID_FIELD_NUMBER = 11; private long userId_; /** - * - * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; - * * @return The userId. */ @java.lang.Override @@ -699,8 +582,6 @@ public long getUserId() { public static final int SCHEDULE_FIELD_NUMBER = 12; private volatile java.lang.Object schedule_; /** - * - * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -710,7 +591,6 @@ public long getUserId() {
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The schedule. */ @java.lang.Override @@ -719,15 +599,14 @@ public java.lang.String getSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; } } /** - * - * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -737,15 +616,16 @@ public java.lang.String getSchedule() {
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for schedule. */ @java.lang.Override - public com.google.protobuf.ByteString getScheduleBytes() { + public com.google.protobuf.ByteString + getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schedule_ = b; return b; } else { @@ -756,8 +636,6 @@ public com.google.protobuf.ByteString getScheduleBytes() { public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER = 23; private volatile java.lang.Object notificationPubsubTopic_; /** - * - * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -765,9 +643,7 @@ public com.google.protobuf.ByteString getScheduleBytes() {
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notificationPubsubTopic. */ @java.lang.Override @@ -776,15 +652,14 @@ public java.lang.String getNotificationPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; } } /** - * - * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -792,17 +667,17 @@ public java.lang.String getNotificationPubsubTopic() {
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for notificationPubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString + getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -813,18 +688,13 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { public static final int EMAIL_PREFERENCES_FIELD_NUMBER = 25; private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; /** - * - * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the emailPreferences field is set. */ @java.lang.Override @@ -832,47 +702,34 @@ public boolean hasEmailPreferences() { return emailPreferences_ != null; } /** - * - * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The emailPreferences. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { - return emailPreferences_ == null - ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() - : emailPreferences_; + return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; } /** - * - * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder - getEmailPreferencesOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() { return getEmailPreferences(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -884,7 +741,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_); } @@ -906,9 +764,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSourceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dataSourceId_); } - if (state_ - != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } if (params_ != null) { @@ -948,46 +804,53 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_); } if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getScheduleTime()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dataSourceId_); } - if (state_ - != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } if (params_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getParams()); } if (runTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRunTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getRunTime()); } if (userId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, userId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, schedule_); } if (errorStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getErrorStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getErrorStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationPubsubTopic_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(23, notificationPubsubTopic_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, notificationPubsubTopic_); } if (emailPreferences_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getEmailPreferences()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getEmailPreferences()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -997,56 +860,69 @@ 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.datatransfer.v1.TransferRun)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.TransferRun other = - (com.google.cloud.bigquery.datatransfer.v1.TransferRun) obj; + com.google.cloud.bigquery.datatransfer.v1.TransferRun other = (com.google.cloud.bigquery.datatransfer.v1.TransferRun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } if (hasRunTime() != other.hasRunTime()) return false; if (hasRunTime()) { - if (!getRunTime().equals(other.getRunTime())) return false; + if (!getRunTime() + .equals(other.getRunTime())) return false; } if (hasErrorStatus() != other.hasErrorStatus()) return false; if (hasErrorStatus()) { - if (!getErrorStatus().equals(other.getErrorStatus())) return false; + if (!getErrorStatus() + .equals(other.getErrorStatus())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasParams() != other.hasParams()) return false; if (hasParams()) { - if (!getParams().equals(other.getParams())) return false; + if (!getParams() + .equals(other.getParams())) return false; } - if (!getDataSourceId().equals(other.getDataSourceId())) return false; + if (!getDataSourceId() + .equals(other.getDataSourceId())) return false; if (state_ != other.state_) return false; - if (getUserId() != other.getUserId()) return false; - if (!getSchedule().equals(other.getSchedule())) return false; - if (!getNotificationPubsubTopic().equals(other.getNotificationPubsubTopic())) return false; + if (getUserId() + != other.getUserId()) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; + if (!getNotificationPubsubTopic() + .equals(other.getNotificationPubsubTopic())) return false; if (hasEmailPreferences() != other.hasEmailPreferences()) return false; if (hasEmailPreferences()) { - if (!getEmailPreferences().equals(other.getEmailPreferences())) return false; + if (!getEmailPreferences() + .equals(other.getEmailPreferences())) return false; } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: - if (!getDestinationDatasetId().equals(other.getDestinationDatasetId())) return false; + if (!getDestinationDatasetId() + .equals(other.getDestinationDatasetId())) return false; break; case 0: default: @@ -1097,7 +973,8 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + USER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getSchedule().hashCode(); hash = (37 * hash) + NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER; @@ -1120,136 +997,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferRun 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; } /** - * - * *
    * Represents a data transfer run.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferRun} */ - 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.datatransfer.v1.TransferRun) com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, - com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.TransferRun.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(); @@ -1319,9 +1189,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; } @java.lang.Override @@ -1340,8 +1210,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferRun buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.TransferRun result = - new com.google.cloud.bigquery.datatransfer.v1.TransferRun(this); + com.google.cloud.bigquery.datatransfer.v1.TransferRun result = new com.google.cloud.bigquery.datatransfer.v1.TransferRun(this); result.name_ = name_; if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; @@ -1400,39 +1269,38 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferRun) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferRun) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferRun)other); } else { super.mergeFrom(other); return this; @@ -1440,8 +1308,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferRun other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1489,17 +1356,15 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferRun o mergeEmailPreferences(other.getEmailPreferences()); } switch (other.getDestinationCase()) { - case DESTINATION_DATASET_ID: - { - destinationCase_ = 2; - destination_ = other.destination_; - onChanged(); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case DESTINATION_DATASET_ID: { + destinationCase_ = 2; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1527,105 +1392,104 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - destinationCase_ = 2; - destination_ = s; - break; - } // case 18 - case 26: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - dataSourceId_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 64: - { - state_ = input.readEnum(); - - break; - } // case 64 - case 74: - { - input.readMessage(getParamsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getRunTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 88: - { - userId_ = input.readInt64(); - - break; - } // case 88 - case 98: - { - schedule_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 170: - { - input.readMessage(getErrorStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 170 - case 186: - { - notificationPubsubTopic_ = input.readStringRequireUtf8(); - - break; - } // case 186 - case 202: - { - input.readMessage( - getEmailPreferencesFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 202 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 2; + destination_ = s; + break; + } // case 18 + case 26: { + input.readMessage( + getScheduleTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + dataSourceId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 64: { + state_ = input.readEnum(); + + break; + } // case 64 + case 74: { + input.readMessage( + getParamsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getRunTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 88: { + userId_ = input.readInt64(); + + break; + } // case 88 + case 98: { + schedule_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 170: { + input.readMessage( + getErrorStatusFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 170 + case 186: { + notificationPubsubTopic_ = input.readStringRequireUtf8(); + + break; + } // case 186 + case 202: { + input.readMessage( + getEmailPreferencesFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 202 + 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) { @@ -1635,12 +1499,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -1650,10 +1514,9 @@ public Builder clearDestination() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1662,13 +1525,13 @@ public Builder clearDestination() {
      * 
* * 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; @@ -1677,8 +1540,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1687,14 +1548,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1702,8 +1564,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1712,22 +1572,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1736,18 +1594,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1756,16 +1611,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1773,47 +1628,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
* * .google.protobuf.Timestamp schedule_time = 3; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
* * .google.protobuf.Timestamp schedule_time = 3; - * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1834,15 +1676,14 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
* * .google.protobuf.Timestamp schedule_time = 3; */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleTimeBuilder_ == null) { scheduleTime_ = builderForValue.build(); onChanged(); @@ -1853,8 +1694,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1865,9 +1704,7 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { if (scheduleTime_ != null) { scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial(); } else { scheduleTime_ = value; } @@ -1879,8 +1716,6 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1899,8 +1734,6 @@ public Builder clearScheduleTime() { return this; } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1908,13 +1741,11 @@ public Builder clearScheduleTime() { * .google.protobuf.Timestamp schedule_time = 3; */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - + onChanged(); return getScheduleTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1925,14 +1756,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { if (scheduleTimeBuilder_ != null) { return scheduleTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } } /** - * - * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1940,17 +1768,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { * .google.protobuf.Timestamp schedule_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getScheduleTimeFieldBuilder() { if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); + scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), + getParentForChildren(), + isClean()); scheduleTime_ = null; } return scheduleTimeBuilder_; @@ -1958,35 +1783,26 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { private com.google.protobuf.Timestamp runTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - runTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> runTimeBuilder_; /** - * - * *
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
      * 
* * .google.protobuf.Timestamp run_time = 10; - * * @return Whether the runTime field is set. */ public boolean hasRunTime() { return runTimeBuilder_ != null || runTime_ != null; } /** - * - * *
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
      * 
* * .google.protobuf.Timestamp run_time = 10; - * * @return The runTime. */ public com.google.protobuf.Timestamp getRunTime() { @@ -1997,8 +1813,6 @@ public com.google.protobuf.Timestamp getRunTime() { } } /** - * - * *
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -2020,8 +1834,6 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -2029,7 +1841,8 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp run_time = 10;
      */
-    public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setRunTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (runTimeBuilder_ == null) {
         runTime_ = builderForValue.build();
         onChanged();
@@ -2040,8 +1853,6 @@ public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -2053,7 +1864,7 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) {
       if (runTimeBuilder_ == null) {
         if (runTime_ != null) {
           runTime_ =
-              com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial();
         } else {
           runTime_ = value;
         }
@@ -2065,8 +1876,6 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -2086,8 +1895,6 @@ public Builder clearRunTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -2096,13 +1903,11 @@ public Builder clearRunTime() {
      * .google.protobuf.Timestamp run_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() {
-
+      
       onChanged();
       return getRunTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -2114,12 +1919,11 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
       if (runTimeBuilder_ != null) {
         return runTimeBuilder_.getMessageOrBuilder();
       } else {
-        return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_;
+        return runTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : runTime_;
       }
     }
     /**
-     *
-     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -2128,17 +1932,14 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
      * .google.protobuf.Timestamp run_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getRunTimeFieldBuilder() {
       if (runTimeBuilder_ == null) {
-        runTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getRunTime(), getParentForChildren(), isClean());
+        runTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getRunTime(),
+                getParentForChildren(),
+                isClean());
         runTime_ = null;
       }
       return runTimeBuilder_;
@@ -2146,31 +1947,24 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
 
     private com.google.rpc.Status errorStatus_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        errorStatusBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorStatusBuilder_;
     /**
-     *
-     *
      * 
      * Status of the transfer run.
      * 
* * .google.rpc.Status error_status = 21; - * * @return Whether the errorStatus field is set. */ public boolean hasErrorStatus() { return errorStatusBuilder_ != null || errorStatus_ != null; } /** - * - * *
      * Status of the transfer run.
      * 
* * .google.rpc.Status error_status = 21; - * * @return The errorStatus. */ public com.google.rpc.Status getErrorStatus() { @@ -2181,8 +1975,6 @@ public com.google.rpc.Status getErrorStatus() { } } /** - * - * *
      * Status of the transfer run.
      * 
@@ -2203,15 +1995,14 @@ public Builder setErrorStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Status of the transfer run.
      * 
* * .google.rpc.Status error_status = 21; */ - public Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setErrorStatus( + com.google.rpc.Status.Builder builderForValue) { if (errorStatusBuilder_ == null) { errorStatus_ = builderForValue.build(); onChanged(); @@ -2222,8 +2013,6 @@ public Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Status of the transfer run.
      * 
@@ -2234,7 +2023,7 @@ public Builder mergeErrorStatus(com.google.rpc.Status value) { if (errorStatusBuilder_ == null) { if (errorStatus_ != null) { errorStatus_ = - com.google.rpc.Status.newBuilder(errorStatus_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(errorStatus_).mergeFrom(value).buildPartial(); } else { errorStatus_ = value; } @@ -2246,8 +2035,6 @@ public Builder mergeErrorStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Status of the transfer run.
      * 
@@ -2266,8 +2053,6 @@ public Builder clearErrorStatus() { return this; } /** - * - * *
      * Status of the transfer run.
      * 
@@ -2275,13 +2060,11 @@ public Builder clearErrorStatus() { * .google.rpc.Status error_status = 21; */ public com.google.rpc.Status.Builder getErrorStatusBuilder() { - + onChanged(); return getErrorStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Status of the transfer run.
      * 
@@ -2292,12 +2075,11 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { if (errorStatusBuilder_ != null) { return errorStatusBuilder_.getMessageOrBuilder(); } else { - return errorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : errorStatus_; + return errorStatus_ == null ? + com.google.rpc.Status.getDefaultInstance() : errorStatus_; } } /** - * - * *
      * Status of the transfer run.
      * 
@@ -2305,15 +2087,14 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { * .google.rpc.Status error_status = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorStatusFieldBuilder() { if (errorStatusBuilder_ == null) { - errorStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getErrorStatus(), getParentForChildren(), isClean()); + errorStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getErrorStatus(), + getParentForChildren(), + isClean()); errorStatus_ = null; } return errorStatusBuilder_; @@ -2321,37 +2102,26 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2362,15 +2132,12 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2386,17 +2153,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -2407,21 +2172,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2433,15 +2195,12 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -2455,62 +2214,51 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2518,37 +2266,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2559,15 +2296,12 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2583,17 +2317,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2604,21 +2336,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2630,15 +2359,12 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2652,62 +2378,51 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2715,58 +2430,39 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2782,17 +2478,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2803,21 +2496,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2829,15 +2518,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2851,64 +2536,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2916,13 +2585,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Struct params_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - paramsBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> paramsBuilder_; /** - * - * *
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2931,15 +2595,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the params field is set. */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** - * - * *
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2948,7 +2609,6 @@ public boolean hasParams() {
      * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The params. */ public com.google.protobuf.Struct getParams() { @@ -2959,8 +2619,6 @@ public com.google.protobuf.Struct getParams() { } } /** - * - * *
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2984,8 +2642,6 @@ public Builder setParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2995,7 +2651,8 @@ public Builder setParams(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setParams(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (paramsBuilder_ == null) {
         params_ = builderForValue.build();
         onChanged();
@@ -3006,8 +2663,6 @@ public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -3020,7 +2675,8 @@ public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
     public Builder mergeParams(com.google.protobuf.Struct value) {
       if (paramsBuilder_ == null) {
         if (params_ != null) {
-          params_ = com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
+          params_ =
+            com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
         } else {
           params_ = value;
         }
@@ -3032,8 +2688,6 @@ public Builder mergeParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -3055,8 +2709,6 @@ public Builder clearParams() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -3067,13 +2719,11 @@ public Builder clearParams() {
      * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.protobuf.Struct.Builder getParamsBuilder() {
-
+      
       onChanged();
       return getParamsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -3087,12 +2737,11 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
       if (paramsBuilder_ != null) {
         return paramsBuilder_.getMessageOrBuilder();
       } else {
-        return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
+        return params_ == null ?
+            com.google.protobuf.Struct.getDefaultInstance() : params_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -3103,31 +2752,25 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
      * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getParamsFieldBuilder() {
       if (paramsBuilder_ == null) {
-        paramsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                getParams(), getParentForChildren(), isClean());
+        paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                getParams(),
+                getParentForChildren(),
+                isClean());
         params_ = null;
       }
       return paramsBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the destinationDatasetId field is set. */ @java.lang.Override @@ -3135,14 +2778,11 @@ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** - * - * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The destinationDatasetId. */ @java.lang.Override @@ -3152,7 +2792,8 @@ public java.lang.String getDestinationDatasetId() { ref = destination_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -3163,25 +2804,24 @@ public java.lang.String getDestinationDatasetId() { } } /** - * - * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for destinationDatasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString + getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -3191,35 +2831,30 @@ public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { } } /** - * - * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetId(java.lang.String value) { + public Builder setDestinationDatasetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - destinationCase_ = 2; + throw new NullPointerException(); + } + destinationCase_ = 2; destination_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDestinationDatasetId() { @@ -3231,22 +2866,20 @@ public Builder clearDestinationDatasetId() { return this; } /** - * - * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetIdBytes(com.google.protobuf.ByteString value) { + public Builder setDestinationDatasetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); destinationCase_ = 2; destination_ = value; onChanged(); @@ -3255,20 +2888,18 @@ public Builder setDestinationDatasetIdBytes(com.google.protobuf.ByteString value private java.lang.Object dataSourceId_ = ""; /** - * - * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The dataSourceId. */ public java.lang.String getDataSourceId() { java.lang.Object ref = dataSourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; @@ -3277,21 +2908,20 @@ public java.lang.String getDataSourceId() { } } /** - * - * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for dataSourceId. */ - public com.google.protobuf.ByteString getDataSourceIdBytes() { + public com.google.protobuf.ByteString + getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -3299,61 +2929,54 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() { } } /** - * - * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceId(java.lang.String value) { + public Builder setDataSourceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataSourceId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDataSourceId() { - + dataSourceId_ = getDefaultInstance().getDataSourceId(); onChanged(); return this; } /** - * - * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { + public Builder setDataSourceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceId_ = value; onChanged(); return this; @@ -3361,67 +2984,51 @@ public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = - com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED - : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } /** - * - * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @param value The state to set. * @return This builder for chaining. */ @@ -3429,39 +3036,33 @@ public Builder setState(com.google.cloud.bigquery.datatransfer.v1.TransferState if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long userId_; + private long userId_ ; /** - * - * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; - * * @return The userId. */ @java.lang.Override @@ -3469,36 +3070,30 @@ public long getUserId() { return userId_; } /** - * - * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; - * * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId(long value) { - + userId_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; - * * @return This builder for chaining. */ public Builder clearUserId() { - + userId_ = 0L; onChanged(); return this; @@ -3506,8 +3101,6 @@ public Builder clearUserId() { private java.lang.Object schedule_ = ""; /** - * - * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3517,13 +3110,13 @@ public Builder clearUserId() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = schedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; @@ -3532,8 +3125,6 @@ public java.lang.String getSchedule() { } } /** - * - * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3543,14 +3134,15 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for schedule. */ - public com.google.protobuf.ByteString getScheduleBytes() { + public com.google.protobuf.ByteString + getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schedule_ = b; return b; } else { @@ -3558,8 +3150,6 @@ public com.google.protobuf.ByteString getScheduleBytes() { } } /** - * - * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3569,22 +3159,20 @@ public com.google.protobuf.ByteString getScheduleBytes() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The schedule to set. * @return This builder for chaining. */ - public Builder setSchedule(java.lang.String value) { + public Builder setSchedule( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schedule_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3594,18 +3182,15 @@ public Builder setSchedule(java.lang.String value) {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSchedule() { - + schedule_ = getDefaultInstance().getSchedule(); onChanged(); return this; } /** - * - * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3615,16 +3200,16 @@ public Builder clearSchedule() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for schedule to set. * @return This builder for chaining. */ - public Builder setScheduleBytes(com.google.protobuf.ByteString value) { + public Builder setScheduleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schedule_ = value; onChanged(); return this; @@ -3632,8 +3217,6 @@ public Builder setScheduleBytes(com.google.protobuf.ByteString value) { private java.lang.Object notificationPubsubTopic_ = ""; /** - * - * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3641,15 +3224,14 @@ public Builder setScheduleBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notificationPubsubTopic. */ public java.lang.String getNotificationPubsubTopic() { java.lang.Object ref = notificationPubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; @@ -3658,8 +3240,6 @@ public java.lang.String getNotificationPubsubTopic() { } } /** - * - * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3667,16 +3247,16 @@ public java.lang.String getNotificationPubsubTopic() {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for notificationPubsubTopic. */ - public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString + getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -3684,8 +3264,6 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { } } /** - * - * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3693,24 +3271,21 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopic(java.lang.String value) { + public Builder setNotificationPubsubTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationPubsubTopic_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3718,20 +3293,16 @@ public Builder setNotificationPubsubTopic(java.lang.String value) {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearNotificationPubsubTopic() { - + notificationPubsubTopic_ = getDefaultInstance().getNotificationPubsubTopic(); onChanged(); return this; } /** - * - * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3739,18 +3310,17 @@ public Builder clearNotificationPubsubTopic() {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value) { + public Builder setNotificationPubsubTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationPubsubTopic_ = value; onChanged(); return this; @@ -3758,67 +3328,47 @@ public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString va private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> - emailPreferencesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> emailPreferencesBuilder_; /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the emailPreferences field is set. */ public boolean hasEmailPreferences() { return emailPreferencesBuilder_ != null || emailPreferences_ != null; } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The emailPreferences. */ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { if (emailPreferencesBuilder_ == null) { - return emailPreferences_ == null - ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() - : emailPreferences_; + return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; } else { return emailPreferencesBuilder_.getMessage(); } } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEmailPreferences( - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + public Builder setEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { if (emailPreferencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3832,17 +3382,13 @@ public Builder setEmailPreferences( return this; } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEmailPreferences( com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder builderForValue) { @@ -3856,27 +3402,19 @@ public Builder setEmailPreferences( return this; } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeEmailPreferences( - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + public Builder mergeEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { if (emailPreferencesBuilder_ == null) { if (emailPreferences_ != null) { emailPreferences_ = - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder( - emailPreferences_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder(emailPreferences_).mergeFrom(value).buildPartial(); } else { emailPreferences_ = value; } @@ -3888,17 +3426,13 @@ public Builder mergeEmailPreferences( return this; } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEmailPreferences() { if (emailPreferencesBuilder_ == null) { @@ -3912,79 +3446,61 @@ public Builder clearEmailPreferences() { return this; } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder - getEmailPreferencesBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder getEmailPreferencesBuilder() { + onChanged(); return getEmailPreferencesFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder - getEmailPreferencesOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() { if (emailPreferencesBuilder_ != null) { return emailPreferencesBuilder_.getMessageOrBuilder(); } else { - return emailPreferences_ == null - ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() - : emailPreferences_; + return emailPreferences_ == null ? + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; } } /** - * - * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> getEmailPreferencesFieldBuilder() { if (emailPreferencesBuilder_ == null) { - emailPreferencesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, - com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>( - getEmailPreferences(), getParentForChildren(), isClean()); + emailPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>( + getEmailPreferences(), + getParentForChildren(), + isClean()); emailPreferences_ = null; } return emailPreferencesBuilder_; } - @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); } @@ -3994,12 +3510,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.TransferRun) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferRun) private static final com.google.cloud.bigquery.datatransfer.v1.TransferRun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.TransferRun(); } @@ -4008,27 +3524,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferRun getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferRun 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 TransferRun 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; @@ -4043,4 +3559,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.TransferRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java similarity index 82% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java index 9276b6407f87..3544c99c1553 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface TransferRunOrBuilder - extends +public interface TransferRunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.TransferRun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -34,13 +16,10 @@ public interface TransferRunOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -49,38 +28,30 @@ public interface TransferRunOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; - * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; - * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
    * Minimum time after which a transfer run can be started.
    * 
@@ -90,34 +61,26 @@ public interface TransferRunOrBuilder com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); /** - * - * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; - * * @return Whether the runTime field is set. */ boolean hasRunTime(); /** - * - * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; - * * @return The runTime. */ com.google.protobuf.Timestamp getRunTime(); /** - * - * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
@@ -128,32 +91,24 @@ public interface TransferRunOrBuilder
   com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; - * * @return Whether the errorStatus field is set. */ boolean hasErrorStatus(); /** - * - * *
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; - * * @return The errorStatus. */ com.google.rpc.Status getErrorStatus(); /** - * - * *
    * Status of the transfer run.
    * 
@@ -163,128 +118,93 @@ public interface TransferRunOrBuilder com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder(); /** - * - * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -293,13 +213,10 @@ public interface TransferRunOrBuilder
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the params field is set. */ boolean hasParams(); /** - * - * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -308,13 +225,10 @@ public interface TransferRunOrBuilder
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The params. */ com.google.protobuf.Struct getParams(); /** - * - * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -327,108 +241,84 @@ public interface TransferRunOrBuilder
   com.google.protobuf.StructOrBuilder getParamsOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the destinationDatasetId field is set. */ boolean hasDestinationDatasetId(); /** - * - * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The destinationDatasetId. */ java.lang.String getDestinationDatasetId(); /** - * - * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for destinationDatasetId. */ - com.google.protobuf.ByteString getDestinationDatasetIdBytes(); + com.google.protobuf.ByteString + getDestinationDatasetIdBytes(); /** - * - * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The dataSourceId. */ java.lang.String getDataSourceId(); /** - * - * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for dataSourceId. */ - com.google.protobuf.ByteString getDataSourceIdBytes(); + com.google.protobuf.ByteString + getDataSourceIdBytes(); /** - * - * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; - * * @return The state. */ com.google.cloud.bigquery.datatransfer.v1.TransferState getState(); /** - * - * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; - * * @return The userId. */ long getUserId(); /** - * - * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -438,13 +328,10 @@ public interface TransferRunOrBuilder
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The schedule. */ java.lang.String getSchedule(); /** - * - * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -454,14 +341,12 @@ public interface TransferRunOrBuilder
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for schedule. */ - com.google.protobuf.ByteString getScheduleBytes(); + com.google.protobuf.ByteString + getScheduleBytes(); /** - * - * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -469,15 +354,11 @@ public interface TransferRunOrBuilder
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notificationPubsubTopic. */ java.lang.String getNotificationPubsubTopic(); /** - * - * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -485,60 +366,44 @@ public interface TransferRunOrBuilder
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for notificationPubsubTopic. */ - com.google.protobuf.ByteString getNotificationPubsubTopicBytes(); + com.google.protobuf.ByteString + getNotificationPubsubTopicBytes(); /** - * - * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the emailPreferences field is set. */ boolean hasEmailPreferences(); /** - * - * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The emailPreferences. */ com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences(); /** - * - * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder - getEmailPreferencesOrBuilder(); + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder(); public com.google.cloud.bigquery.datatransfer.v1.TransferRun.DestinationCase getDestinationCase(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java similarity index 69% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java index 8a4e9bd517ee..edd8a1badc44 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java @@ -1,36 +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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Represents data transfer run state.
  * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.TransferState} */ -public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { +public enum TransferState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * State placeholder (0).
    * 
@@ -39,8 +21,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ TRANSFER_STATE_UNSPECIFIED(0), /** - * - * *
    * Data transfer is scheduled and is waiting to be picked up by
    * data transfer backend (2).
@@ -50,8 +30,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum {
    */
   PENDING(2),
   /**
-   *
-   *
    * 
    * Data transfer is in progress (3).
    * 
@@ -60,8 +38,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(3), /** - * - * *
    * Data transfer completed successfully (4).
    * 
@@ -70,8 +46,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(4), /** - * - * *
    * Data transfer failed (5).
    * 
@@ -80,8 +54,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(5), /** - * - * *
    * Data transfer is cancelled (6).
    * 
@@ -93,8 +65,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * State placeholder (0).
    * 
@@ -103,8 +73,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRANSFER_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Data transfer is scheduled and is waiting to be picked up by
    * data transfer backend (2).
@@ -114,8 +82,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int PENDING_VALUE = 2;
   /**
-   *
-   *
    * 
    * Data transfer is in progress (3).
    * 
@@ -124,8 +90,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 3; /** - * - * *
    * Data transfer completed successfully (4).
    * 
@@ -134,8 +98,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 4; /** - * - * *
    * Data transfer failed (5).
    * 
@@ -144,8 +106,6 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 5; /** - * - * *
    * Data transfer is cancelled (6).
    * 
@@ -154,6 +114,7 @@ public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -178,57 +139,52 @@ public static TransferState valueOf(int value) { */ public static TransferState forNumber(int value) { switch (value) { - case 0: - return TRANSFER_STATE_UNSPECIFIED; - case 2: - return PENDING; - case 3: - return RUNNING; - case 4: - return SUCCEEDED; - case 5: - return FAILED; - case 6: - return CANCELLED; - default: - return null; + case 0: return TRANSFER_STATE_UNSPECIFIED; + case 2: return PENDING; + case 3: return RUNNING; + case 4: return SUCCEEDED; + case 5: return FAILED; + case 6: return CANCELLED; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransferState findValueByNumber(int number) { - return TransferState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + TransferState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransferState findValueByNumber(int number) { + return TransferState.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.datatransfer.v1.TransferProto.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor().getEnumTypes().get(1); } private static final TransferState[] VALUES = values(); - public static TransferState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TransferState 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; @@ -244,3 +200,4 @@ private TransferState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datatransfer.v1.TransferState) } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java similarity index 66% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java index 13f213a67031..f473f00162a2 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java @@ -1,37 +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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * DEPRECATED. Represents data transfer type.
  * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.TransferType} */ -@java.lang.Deprecated -public enum TransferType implements com.google.protobuf.ProtocolMessageEnum { +@java.lang.Deprecated public enum TransferType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Invalid or Unknown transfer type placeholder.
    * 
@@ -40,8 +21,6 @@ public enum TransferType implements com.google.protobuf.ProtocolMessageEnum { */ TRANSFER_TYPE_UNSPECIFIED(0), /** - * - * *
    * Batch data transfer.
    * 
@@ -50,8 +29,6 @@ public enum TransferType implements com.google.protobuf.ProtocolMessageEnum { */ BATCH(1), /** - * - * *
    * Streaming data transfer. Streaming data source currently doesn't
    * support multiple transfer configs per project.
@@ -64,8 +41,6 @@ public enum TransferType implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Invalid or Unknown transfer type placeholder.
    * 
@@ -74,8 +49,6 @@ public enum TransferType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRANSFER_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Batch data transfer.
    * 
@@ -84,8 +57,6 @@ public enum TransferType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BATCH_VALUE = 1; /** - * - * *
    * Streaming data transfer. Streaming data source currently doesn't
    * support multiple transfer configs per project.
@@ -95,6 +66,7 @@ public enum TransferType implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int STREAMING_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -119,51 +91,49 @@ public static TransferType valueOf(int value) {
    */
   public static TransferType forNumber(int value) {
     switch (value) {
-      case 0:
-        return TRANSFER_TYPE_UNSPECIFIED;
-      case 1:
-        return BATCH;
-      case 2:
-        return STREAMING;
-      default:
-        return null;
+      case 0: return TRANSFER_TYPE_UNSPECIFIED;
+      case 1: return BATCH;
+      case 2: return STREAMING;
+      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 internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public TransferType findValueByNumber(int number) {
-          return TransferType.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      TransferType> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public TransferType findValueByNumber(int number) {
+            return TransferType.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.datatransfer.v1.TransferProto.getDescriptor()
-        .getEnumTypes()
-        .get(0);
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final TransferType[] VALUES = values();
 
-  public static TransferType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static TransferType 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;
@@ -179,3 +149,4 @@ private TransferType(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datatransfer.v1.TransferType)
 }
+
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
similarity index 50%
rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
index 9e4036385214..5425ab24b9bb 100644
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
+++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
@@ -1,43 +1,25 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the 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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
- *
- *
  * 
  * A request to update a transfer configuration. To update the user id of the
- * transfer configuration, an authorization code needs to be provided.
+ * transfer configuration, authorization info needs to be provided.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest} */ -public final class UpdateTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateTransferConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) UpdateTransferConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateTransferConfigRequest.newBuilder() to construct. private UpdateTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateTransferConfigRequest() { authorizationCode_ = ""; versionInfo_ = ""; @@ -46,43 +28,37 @@ private UpdateTransferConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateTransferConfigRequest(); } @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.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class); } public static final int TRANSFER_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_; /** - * - * *
    * Required. Data transfer configuration to create.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the transferConfig field is set. */ @java.lang.Override @@ -90,66 +66,49 @@ public boolean hasTransferConfig() { return transferConfig_ != null; } /** - * - * *
    * Required. Data transfer configuration to create.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The transferConfig. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { - return transferConfig_ == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() - : transferConfig_; + return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; } /** - * - * *
    * Required. Data transfer configuration to create.
    * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder - getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { return getTransferConfig(); } public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object authorizationCode_; /** - * - * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
-   * If it is provided, the transfer configuration will be associated with the
-   * authorizing user.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
    * 
* * string authorization_code = 3; - * * @return The authorizationCode. */ @java.lang.Override @@ -158,43 +117,41 @@ public java.lang.String getAuthorizationCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; } } /** - * - * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
-   * If it is provided, the transfer configuration will be associated with the
-   * authorizing user.
-   * In order to obtain authorization_code, please make a
-   * request to
-   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-   * * client_id should be OAuth client_id of BigQuery DTS API for the given
-   *   data source returned by ListDataSources method.
-   * * data_source_scopes are the scopes returned by ListDataSources method.
-   * * redirect_uri is an optional parameter. If not specified, then
-   *   authorization code is posted to the opener of authorization flow window.
-   *   Otherwise it will be sent to the redirect uri. A special value of
-   *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-   *   returned in the title bar of the browser, with the page text prompting
-   *   the user to copy the code and paste it in the application.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
    * 
* * string authorization_code = 3; - * * @return The bytes for authorizationCode. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString + getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -205,15 +162,11 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -221,15 +174,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -237,14 +186,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -254,19 +200,23 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VERSION_INFO_FIELD_NUMBER = 5; private volatile java.lang.Object versionInfo_; /** - * - * *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
    * 
* * string version_info = 5; - * * @return The versionInfo. */ @java.lang.Override @@ -275,34 +225,41 @@ public java.lang.String getVersionInfo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } } /** - * - * *
-   * Optional version info. If users want to find a very recent access token,
-   * that is, immediately after approving access, users have to set the
-   * version_info claim in the token request. To obtain the version_info, users
-   * must use the "none+gsession" response type. which be return a
-   * version_info back in the authorization response which be be put in a JWT
-   * claim in the token request.
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
    * 
* * string version_info = 5; - * * @return The bytes for versionInfo. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionInfoBytes() { + public com.google.protobuf.ByteString + getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -313,18 +270,18 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountName_; /** - * - * *
-   * Optional service account name. If this field is set and
-   * "service_account_name" is set in update_mask, transfer config will be
-   * updated to use this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
    * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
    * 
* * string service_account_name = 6; - * * @return The serviceAccountName. */ @java.lang.Override @@ -333,33 +290,36 @@ public java.lang.String getServiceAccountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; } } /** - * - * *
-   * Optional service account name. If this field is set and
-   * "service_account_name" is set in update_mask, transfer config will be
-   * updated to use this service account credentials. It requires that
-   * requesting user calling this API has permissions to act as this service
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
    * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
    * 
* * string service_account_name = 6; - * * @return The bytes for serviceAccountName. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountNameBytes() { + public com.google.protobuf.ByteString + getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -368,7 +328,6 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +339,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (transferConfig_ != null) { output.writeMessage(1, getTransferConfig()); } @@ -406,13 +366,15 @@ public int getSerializedSize() { size = 0; if (transferConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTransferConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTransferConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authorizationCode_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, versionInfo_); @@ -428,25 +390,29 @@ 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.datatransfer.v1.UpdateTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other = - (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) obj; if (hasTransferConfig() != other.hasTransferConfig()) return false; if (hasTransferConfig()) { - if (!getTransferConfig().equals(other.getTransferConfig())) return false; + if (!getTransferConfig() + .equals(other.getTransferConfig())) return false; } - if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; + if (!getAuthorizationCode() + .equals(other.getAuthorizationCode())) 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 (!getVersionInfo().equals(other.getVersionInfo())) return false; - if (!getServiceAccountName().equals(other.getServiceAccountName())) return false; + if (!getVersionInfo() + .equals(other.getVersionInfo())) return false; + if (!getServiceAccountName() + .equals(other.getServiceAccountName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -478,139 +444,130 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - 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.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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; } /** - * - * *
    * A request to update a transfer configuration. To update the user id of the
-   * transfer configuration, an authorization code needs to be provided.
+   * transfer configuration, authorization info needs to be provided.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest} */ - 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.datatransfer.v1.UpdateTransferConfigRequest) com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.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(); @@ -636,16 +593,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -659,8 +614,7 @@ public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest bui @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest result = - new com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest(this); + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest(this); if (transferConfigBuilder_ == null) { result.transferConfig_ = transferConfig_; } else { @@ -682,51 +636,46 @@ public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest bui 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.datatransfer.v1.UpdateTransferConfigRequest) { - return mergeFrom( - (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other) { - if (other - == com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.getDefaultInstance()) return this; if (other.hasTransferConfig()) { mergeTransferConfig(other.getTransferConfig()); } @@ -771,43 +720,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTransferConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 26: - { - authorizationCode_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - versionInfo_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - serviceAccountName_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTransferConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 26: { + authorizationCode_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + versionInfo_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + serviceAccountName_ = input.readStringRequireUtf8(); + + break; + } // case 50 + 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) { @@ -820,61 +767,41 @@ public Builder mergeFrom( private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> - transferConfigBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> transferConfigBuilder_; /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the transferConfig field is set. */ public boolean hasTransferConfig() { return transferConfigBuilder_ != null || transferConfig_ != null; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The transferConfig. */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { if (transferConfigBuilder_ == null) { - return transferConfig_ == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() - : transferConfig_; + return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; } else { return transferConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder setTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -888,15 +815,11 @@ public Builder setTransferConfig( return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTransferConfig( com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { @@ -910,24 +833,17 @@ public Builder setTransferConfig( return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder mergeTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (transferConfig_ != null) { transferConfig_ = - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_).mergeFrom(value).buildPartial(); } else { transferConfig_ = value; } @@ -939,15 +855,11 @@ public Builder mergeTransferConfig( return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTransferConfig() { if (transferConfigBuilder_ == null) { @@ -961,66 +873,48 @@ public Builder clearTransferConfig() { return this; } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder - getTransferConfigBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder getTransferConfigBuilder() { + onChanged(); return getTransferConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder - getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { if (transferConfigBuilder_ != null) { return transferConfigBuilder_.getMessageOrBuilder(); } else { - return transferConfig_ == null - ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() - : transferConfig_; + return transferConfig_ == null ? + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; } } /** - * - * *
      * Required. Data transfer configuration to create.
      * 
* - * - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> getTransferConfigFieldBuilder() { if (transferConfigBuilder_ == null) { - transferConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, - com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( - getTransferConfig(), getParentForChildren(), isClean()); + transferConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( + getTransferConfig(), + getParentForChildren(), + isClean()); transferConfig_ = null; } return transferConfigBuilder_; @@ -1028,34 +922,30 @@ public Builder clearTransferConfig() { private java.lang.Object authorizationCode_ = ""; /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * If it is provided, the transfer configuration will be associated with the
-     * authorizing user.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string authorization_code = 3; - * * @return The authorizationCode. */ public java.lang.String getAuthorizationCode() { java.lang.Object ref = authorizationCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; @@ -1064,35 +954,32 @@ public java.lang.String getAuthorizationCode() { } } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * If it is provided, the transfer configuration will be associated with the
-     * authorizing user.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string authorization_code = 3; - * * @return The bytes for authorizationCode. */ - public com.google.protobuf.ByteString getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString + getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -1100,103 +987,90 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() { } } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * If it is provided, the transfer configuration will be associated with the
-     * authorizing user.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string authorization_code = 3; - * * @param value The authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCode(java.lang.String value) { + public Builder setAuthorizationCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizationCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * If it is provided, the transfer configuration will be associated with the
-     * authorizing user.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string authorization_code = 3; - * * @return This builder for chaining. */ public Builder clearAuthorizationCode() { - + authorizationCode_ = getDefaultInstance().getAuthorizationCode(); onChanged(); return this; } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
-     * If it is provided, the transfer configuration will be associated with the
-     * authorizing user.
-     * In order to obtain authorization_code, please make a
-     * request to
-     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
-     * * client_id should be OAuth client_id of BigQuery DTS API for the given
-     *   data source returned by ListDataSources method.
-     * * data_source_scopes are the scopes returned by ListDataSources method.
-     * * redirect_uri is an optional parameter. If not specified, then
-     *   authorization code is posted to the opener of authorization flow window.
-     *   Otherwise it will be sent to the redirect uri. A special value of
-     *   urn:ietf:wg:oauth:2.0:oob means that authorization code should be
-     *   returned in the title bar of the browser, with the page text prompting
-     *   the user to copy the code and paste it in the application.
+     * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+     * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+     * to obtain authorization_code, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string authorization_code = 3; - * * @param value The bytes for authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) { + public Builder setAuthorizationCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationCode_ = value; onChanged(); return this; @@ -1204,55 +1078,39 @@ public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) { 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. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.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. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1268,16 +1126,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1288,20 +1144,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1313,14 +1166,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1334,61 +1184,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.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. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.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_; @@ -1396,25 +1233,30 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object versionInfo_ = ""; /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string version_info = 5; - * * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; @@ -1423,26 +1265,32 @@ public java.lang.String getVersionInfo() { } } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string version_info = 5; - * * @return The bytes for versionInfo. */ - public com.google.protobuf.ByteString getVersionInfoBytes() { + public com.google.protobuf.ByteString + getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -1450,76 +1298,90 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { } } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string version_info = 5; - * * @param value The versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfo(java.lang.String value) { + public Builder setVersionInfo( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + versionInfo_ = value; onChanged(); return this; } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string version_info = 5; - * * @return This builder for chaining. */ public Builder clearVersionInfo() { - + versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** - * - * *
-     * Optional version info. If users want to find a very recent access token,
-     * that is, immediately after approving access, users have to set the
-     * version_info claim in the token request. To obtain the version_info, users
-     * must use the "none+gsession" response type. which be return a
-     * version_info back in the authorization response which be be put in a JWT
-     * claim in the token request.
+     * Optional version info. This is required only if
+     * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+     * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+     * info, make a request to the following URL:
+     * <pre class="prettyprint" suppresswarning="true">
+     * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+     * </pre>
+     * * The <var>client_id</var> is the OAuth client_id of the a data source as
+     * returned by ListDataSources method.
+     * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+     * method.
+     * Note that this should not be set when `service_account_name` is used to
+     * update the transfer config.
      * 
* * string version_info = 5; - * * @param value The bytes for versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { + public Builder setVersionInfoBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + versionInfo_ = value; onChanged(); return this; @@ -1527,24 +1389,25 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountName_ = ""; /** - * - * *
-     * Optional service account name. If this field is set and
-     * "service_account_name" is set in update_mask, transfer config will be
-     * updated to use this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @return The serviceAccountName. */ public java.lang.String getServiceAccountName() { java.lang.Object ref = serviceAccountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; @@ -1553,25 +1416,27 @@ public java.lang.String getServiceAccountName() { } } /** - * - * *
-     * Optional service account name. If this field is set and
-     * "service_account_name" is set in update_mask, transfer config will be
-     * updated to use this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @return The bytes for serviceAccountName. */ - public com.google.protobuf.ByteString getServiceAccountNameBytes() { + public com.google.protobuf.ByteString + getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -1579,80 +1444,82 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } } /** - * - * *
-     * Optional service account name. If this field is set and
-     * "service_account_name" is set in update_mask, transfer config will be
-     * updated to use this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @param value The serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountName(java.lang.String value) { + public Builder setServiceAccountName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountName_ = value; onChanged(); return this; } /** - * - * *
-     * Optional service account name. If this field is set and
-     * "service_account_name" is set in update_mask, transfer config will be
-     * updated to use this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @return This builder for chaining. */ public Builder clearServiceAccountName() { - + serviceAccountName_ = getDefaultInstance().getServiceAccountName(); onChanged(); return this; } /** - * - * *
-     * Optional service account name. If this field is set and
-     * "service_account_name" is set in update_mask, transfer config will be
-     * updated to use this service account credentials. It requires that
-     * requesting user calling this API has permissions to act as this service
+     * Optional service account name. If this field is set, the transfer config
+     * will be created with this service account's credentials. It requires that
+     * the requesting user calling this API has permissions to act as this service
      * account.
+     * Note that not all data sources support service account credentials when
+     * creating a transfer config. For the latest list of data sources, read about
+     * [using service
+     * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
      * 
* * string service_account_name = 6; - * * @param value The bytes for serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1662,43 +1529,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTransferConfigRequest 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 UpdateTransferConfigRequest 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; @@ -1710,8 +1575,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..484a43208fa6 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java @@ -0,0 +1,185 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface UpdateTransferConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Data transfer configuration to create.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the transferConfig field is set. + */ + boolean hasTransferConfig(); + /** + *
+   * Required. Data transfer configuration to create.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The transferConfig. + */ + com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(); + /** + *
+   * Required. Data transfer configuration to create.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder(); + + /** + *
+   * Optional OAuth2 authorization code to use with this transfer configuration.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
+   * 
+ * + * string authorization_code = 3; + * @return The authorizationCode. + */ + java.lang.String getAuthorizationCode(); + /** + *
+   * Optional OAuth2 authorization code to use with this transfer configuration.
+   * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
+   * and new credentials are needed, as indicated by `CheckValidCreds`. In order
+   * to obtain authorization_code, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
+   * 
+ * + * string authorization_code = 3; + * @return The bytes for authorizationCode. + */ + com.google.protobuf.ByteString + getAuthorizationCodeBytes(); + + /** + *
+   * Required. Required list of fields to be updated in this request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Required list of fields to be updated in this request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Required list of fields to be updated in this request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
+   * 
+ * + * string version_info = 5; + * @return The versionInfo. + */ + java.lang.String getVersionInfo(); + /** + *
+   * Optional version info. This is required only if
+   * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
+   * are needed, as indicated by `CheckValidCreds`. In order to obtain version
+   * info, make a request to the following URL:
+   * <pre class="prettyprint" suppresswarning="true">
+   * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
+   * </pre>
+   * * The <var>client_id</var> is the OAuth client_id of the a data source as
+   * returned by ListDataSources method.
+   * * <var>data_source_scopes</var> are the scopes returned by ListDataSources
+   * method.
+   * Note that this should not be set when `service_account_name` is used to
+   * update the transfer config.
+   * 
+ * + * string version_info = 5; + * @return The bytes for versionInfo. + */ + com.google.protobuf.ByteString + getVersionInfoBytes(); + + /** + *
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
+   * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
+   * 
+ * + * string service_account_name = 6; + * @return The serviceAccountName. + */ + java.lang.String getServiceAccountName(); + /** + *
+   * Optional service account name. If this field is set, the transfer config
+   * will be created with this service account's credentials. It requires that
+   * the requesting user calling this API has permissions to act as this service
+   * account.
+   * Note that not all data sources support service account credentials when
+   * creating a transfer config. For the latest list of data sources, read about
+   * [using service
+   * accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
+   * 
+ * + * string service_account_name = 6; + * @return The bytes for serviceAccountName. + */ + com.google.protobuf.ByteString + getServiceAccountNameBytes(); +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java similarity index 66% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java index 127ccc9f62fc..74c5ceb8e4e4 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java @@ -1,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** - * - * *
  * Information about a user.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UserInfo} */ -public final class UserInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UserInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.UserInfo) UserInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UserInfo.newBuilder() to construct. private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UserInfo() { email_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UserInfo(); } @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.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, - com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); } private int bitField0_; public static final int EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object email_; /** - * - * *
    * E-mail address of the user.
    * 
* * optional string email = 1; - * * @return Whether the email field is set. */ @java.lang.Override @@ -86,14 +64,11 @@ public boolean hasEmail() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * E-mail address of the user.
    * 
* * optional string email = 1; - * * @return The email. */ @java.lang.Override @@ -102,29 +77,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** - * - * *
    * E-mail address of the user.
    * 
* * optional string email = 1; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -133,7 +108,6 @@ public com.google.protobuf.ByteString getEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,7 +119,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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -169,17 +144,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.datatransfer.v1.UserInfo)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.UserInfo other = - (com.google.cloud.bigquery.datatransfer.v1.UserInfo) obj; + com.google.cloud.bigquery.datatransfer.v1.UserInfo other = (com.google.cloud.bigquery.datatransfer.v1.UserInfo) obj; if (hasEmail() != other.hasEmail()) return false; if (hasEmail()) { - if (!getEmail().equals(other.getEmail())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -202,135 +177,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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; } /** - * - * *
    * Information about a user.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UserInfo} */ - 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.datatransfer.v1.UserInfo) com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, - com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.UserInfo.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,9 +309,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; } @java.lang.Override @@ -361,8 +330,7 @@ public com.google.cloud.bigquery.datatransfer.v1.UserInfo build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.UserInfo buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.UserInfo result = - new com.google.cloud.bigquery.datatransfer.v1.UserInfo(this); + com.google.cloud.bigquery.datatransfer.v1.UserInfo result = new com.google.cloud.bigquery.datatransfer.v1.UserInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -378,39 +346,38 @@ public com.google.cloud.bigquery.datatransfer.v1.UserInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.UserInfo) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.UserInfo) other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.UserInfo)other); } else { super.mergeFrom(other); return this; @@ -418,8 +385,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.UserInfo other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) return this; if (other.hasEmail()) { bitField0_ |= 0x00000001; email_ = other.email_; @@ -451,19 +417,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + email_ = 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) { @@ -473,39 +437,33 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object email_ = ""; /** - * - * *
      * E-mail address of the user.
      * 
* * optional string email = 1; - * * @return Whether the email field is set. */ public boolean hasEmail() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * E-mail address of the user.
      * 
* * optional string email = 1; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -514,21 +472,20 @@ public java.lang.String getEmail() { } } /** - * - * *
      * E-mail address of the user.
      * 
* * optional string email = 1; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -536,35 +493,30 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
      * E-mail address of the user.
      * 
* * optional string email = 1; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { + public Builder setEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; email_ = value; onChanged(); return this; } /** - * - * *
      * E-mail address of the user.
      * 
* * optional string email = 1; - * * @return This builder for chaining. */ public Builder clearEmail() { @@ -574,30 +526,28 @@ public Builder clearEmail() { return this; } /** - * - * *
      * E-mail address of the user.
      * 
* * optional string email = 1; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; email_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UserInfo) private static final com.google.cloud.bigquery.datatransfer.v1.UserInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.UserInfo(); } @@ -621,27 +571,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.UserInfo getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfo 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 UserInfo 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; @@ -656,4 +606,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java similarity index 52% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java index 579781b87c3f..f25e47beb41c 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java @@ -1,62 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface UserInfoOrBuilder - extends +public interface UserInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.UserInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * E-mail address of the user.
    * 
* * optional string email = 1; - * * @return Whether the email field is set. */ boolean hasEmail(); /** - * - * *
    * E-mail address of the user.
    * 
* * optional string email = 1; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
    * E-mail address of the user.
    * 
* * optional string email = 1; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto similarity index 84% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto index 28dd2d8e3557..63ea08720cc6 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -217,10 +217,12 @@ service DataTransferService { // Enroll data sources in a user project. This allows users to create transfer // configurations for these data sources. They will also appear in the - // ListDataSources RPC and as such, will appear in the BigQuery UI - // 'https://bigquery.cloud.google.com' (and the documents can be found at - // https://cloud.google.com/bigquery/bigquery-web-ui and - // https://cloud.google.com/bigquery/docs/working-with-transfers). + // ListDataSources RPC and as such, will appear in the + // [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents + // can be found in the public guide for + // [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and + // [Data Transfer + // Service](https://cloud.google.com/bigquery/docs/working-with-transfers). rpc EnrollDataSources(EnrollDataSourcesRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*}:enrollDataSources" @@ -287,7 +289,7 @@ message DataSourceParameter { // For integer and double values specifies minimum allowed value. google.protobuf.DoubleValue min_value = 9; - // For integer and double values specifies maxminum allowed value. + // For integer and double values specifies maximum allowed value. google.protobuf.DoubleValue max_value = 10; // Deprecated. This field has no effect. @@ -438,7 +440,7 @@ message GetDataSourceRequest { message ListDataSourcesRequest { // Required. The BigQuery project id for which data sources should be returned. // Must be in the form: `projects/{project_id}` or - // `projects/{project_id}/locations/{location_id} + // `projects/{project_id}/locations/{location_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -470,9 +472,9 @@ message ListDataSourcesResponse { } // A request to create a data transfer configuration. If new credentials are -// needed for this transfer configuration, an authorization code must be -// provided. If an authorization code is provided, the transfer configuration -// will be associated with the user id corresponding to the authorization code. +// needed for this transfer configuration, authorization info must be provided. +// If authorization info is provided, the transfer configuration will be +// associated with the user id corresponding to the authorization info. // Otherwise, the transfer configuration will be associated with the calling // user. message CreateTransferConfigRequest { @@ -491,78 +493,99 @@ message CreateTransferConfigRequest { TransferConfig transfer_config = 2 [(google.api.field_behavior) = REQUIRED]; // Optional OAuth2 authorization code to use with this transfer configuration. - // This is required if new credentials are needed, as indicated by - // `CheckValidCreds`. - // In order to obtain authorization_code, please make a - // request to - // https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= + // This is required only if `transferConfig.dataSourceId` is 'youtube_channel' + // and new credentials are needed, as indicated by `CheckValidCreds`. In order + // to obtain authorization_code, make a request to the following URL: + //
+  // https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes
+  // 
+ // * The client_id is the OAuth client_id of the a data source as + // returned by ListDataSources method. + // * data_source_scopes are the scopes returned by ListDataSources + // method. // - // * client_id should be OAuth client_id of BigQuery DTS API for the given - // data source returned by ListDataSources method. - // * data_source_scopes are the scopes returned by ListDataSources method. - // * redirect_uri is an optional parameter. If not specified, then - // authorization code is posted to the opener of authorization flow window. - // Otherwise it will be sent to the redirect uri. A special value of - // urn:ietf:wg:oauth:2.0:oob means that authorization code should be - // returned in the title bar of the browser, with the page text prompting - // the user to copy the code and paste it in the application. + // Note that this should not be set when `service_account_name` is used to + // create the transfer config. string authorization_code = 3; - // Optional version info. If users want to find a very recent access token, - // that is, immediately after approving access, users have to set the - // version_info claim in the token request. To obtain the version_info, users - // must use the "none+gsession" response type. which be return a - // version_info back in the authorization response which be be put in a JWT - // claim in the token request. + // Optional version info. This is required only if + // `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials + // are needed, as indicated by `CheckValidCreds`. In order to obtain version + // info, make a request to the following URL: + //
+  // https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=client_id&scope=data_source_scopes
+  // 
+ // * The client_id is the OAuth client_id of the a data source as + // returned by ListDataSources method. + // * data_source_scopes are the scopes returned by ListDataSources + // method. + // + // Note that this should not be set when `service_account_name` is used to + // create the transfer config. string version_info = 5; - // Optional service account name. If this field is set, transfer config will - // be created with this service account credentials. It requires that - // requesting user calling this API has permissions to act as this service + // Optional service account name. If this field is set, the transfer config + // will be created with this service account's credentials. It requires that + // the requesting user calling this API has permissions to act as this service // account. + // + // Note that not all data sources support service account credentials when + // creating a transfer config. For the latest list of data sources, read about + // [using service + // accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). string service_account_name = 6; } // A request to update a transfer configuration. To update the user id of the -// transfer configuration, an authorization code needs to be provided. +// transfer configuration, authorization info needs to be provided. message UpdateTransferConfigRequest { // Required. Data transfer configuration to create. TransferConfig transfer_config = 1 [(google.api.field_behavior) = REQUIRED]; // Optional OAuth2 authorization code to use with this transfer configuration. - // If it is provided, the transfer configuration will be associated with the - // authorizing user. - // In order to obtain authorization_code, please make a - // request to - // https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= + // This is required only if `transferConfig.dataSourceId` is 'youtube_channel' + // and new credentials are needed, as indicated by `CheckValidCreds`. In order + // to obtain authorization_code, make a request to the following URL: + //
+  // https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes
+  // 
+ // * The client_id is the OAuth client_id of the a data source as + // returned by ListDataSources method. + // * data_source_scopes are the scopes returned by ListDataSources + // method. // - // * client_id should be OAuth client_id of BigQuery DTS API for the given - // data source returned by ListDataSources method. - // * data_source_scopes are the scopes returned by ListDataSources method. - // * redirect_uri is an optional parameter. If not specified, then - // authorization code is posted to the opener of authorization flow window. - // Otherwise it will be sent to the redirect uri. A special value of - // urn:ietf:wg:oauth:2.0:oob means that authorization code should be - // returned in the title bar of the browser, with the page text prompting - // the user to copy the code and paste it in the application. + // Note that this should not be set when `service_account_name` is used to + // update the transfer config. string authorization_code = 3; // Required. Required list of fields to be updated in this request. google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional version info. If users want to find a very recent access token, - // that is, immediately after approving access, users have to set the - // version_info claim in the token request. To obtain the version_info, users - // must use the "none+gsession" response type. which be return a - // version_info back in the authorization response which be be put in a JWT - // claim in the token request. + // Optional version info. This is required only if + // `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials + // are needed, as indicated by `CheckValidCreds`. In order to obtain version + // info, make a request to the following URL: + //
+  // https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=client_id&scope=data_source_scopes
+  // 
+ // * The client_id is the OAuth client_id of the a data source as + // returned by ListDataSources method. + // * data_source_scopes are the scopes returned by ListDataSources + // method. + // + // Note that this should not be set when `service_account_name` is used to + // update the transfer config. string version_info = 5; - // Optional service account name. If this field is set and - // "service_account_name" is set in update_mask, transfer config will be - // updated to use this service account credentials. It requires that - // requesting user calling this API has permissions to act as this service + // Optional service account name. If this field is set, the transfer config + // will be created with this service account's credentials. It requires that + // the requesting user calling this API has permissions to act as this service // account. + // + // Note that not all data sources support service account credentials when + // creating a transfer config. For the latest list of data sources, read about + // [using service + // accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). string service_account_name = 6; } @@ -621,7 +644,7 @@ message DeleteTransferRunRequest { // A request to list data transfers configured for a BigQuery project. message ListTransferConfigsRequest { - // Required. The BigQuery project id for which data sources + // Required. The BigQuery project id for which transfer configs // should be returned: `projects/{project_id}` or // `projects/{project_id}/locations/{location_id}` string parent = 1 [ @@ -844,8 +867,7 @@ message StartManualTransferRunsResponse { // A request to enroll a set of data sources so they are visible in the // BigQuery UI's `Transfer` tab. message EnrollDataSourcesRequest { - // The name of the project resource in the form: - // `projects/{project_id}` + // The name of the project resource in the form: `projects/{project_id}` string name = 1; // Data sources that are enrolled. It is required to provide at least one diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto similarity index 97% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto index 9092b4b9e539..97d16306920b 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -133,7 +133,9 @@ message TransferConfig { // User specified display name for the data transfer. string display_name = 3; - // Data source id. Cannot be changed once data transfer is created. + // Data source ID. This cannot be changed once data transfer is created. The + // full list of available data source IDs can be returned through an API call: + // https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list string data_source_id = 5; // Parameters specific to each data source. For more information see the From da8b6740a4b7bf7f2b749d81d80931953a942b2b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 17 Nov 2022 05:07:32 +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-bigquerydatatransfer/README.md | 32 +- .../v1/DataTransferServiceClient.java | 0 .../v1/DataTransferServiceSettings.java | 1 - .../datatransfer/v1/gapic_metadata.json | 0 .../datatransfer/v1/package-info.java | 0 .../v1/stub/DataTransferServiceStub.java | 0 .../stub/DataTransferServiceStubSettings.java | 0 ...rpcDataTransferServiceCallableFactory.java | 0 .../v1/stub/GrpcDataTransferServiceStub.java | 1 - ...sonDataTransferServiceCallableFactory.java | 0 .../stub/HttpJsonDataTransferServiceStub.java | 0 ...DataTransferServiceClientHttpJsonTest.java | 0 .../v1/DataTransferServiceClientTest.java | 0 .../v1/MockDataTransferService.java | 0 .../v1/MockDataTransferServiceImpl.java | 0 .../v1/DataTransferServiceGrpc.java | 2184 +++++++++++++++++ .../v1/CheckValidCredsRequest.java | 378 +-- .../v1/CheckValidCredsRequestOrBuilder.java | 58 + .../v1/CheckValidCredsResponse.java | 320 +-- .../v1/CheckValidCredsResponseOrBuilder.java | 38 + .../v1/CreateTransferConfigRequest.java | 768 +++--- .../CreateTransferConfigRequestOrBuilder.java | 82 +- .../bigquery/datatransfer/v1/DataSource.java | 1964 +++++++++------ .../datatransfer/v1/DataSourceOrBuilder.java | 213 +- .../datatransfer/v1/DataSourceParameter.java | 1530 +++++++----- .../v1/DataSourceParameterOrBuilder.java | 142 +- .../datatransfer/v1/DataTransferProto.java | 674 +++++ .../v1/DeleteTransferConfigRequest.java | 390 +-- .../DeleteTransferConfigRequestOrBuilder.java | 58 + .../v1/DeleteTransferRunRequest.java | 390 +-- .../v1/DeleteTransferRunRequestOrBuilder.java | 35 +- .../datatransfer/v1/EmailPreferences.java | 292 ++- .../v1/EmailPreferencesOrBuilder.java | 38 + .../v1/EnrollDataSourcesRequest.java | 469 ++-- .../v1/EnrollDataSourcesRequestOrBuilder.java | 45 +- .../datatransfer/v1/GetDataSourceRequest.java | 375 +-- .../v1/GetDataSourceRequestOrBuilder.java | 58 + .../v1/GetTransferConfigRequest.java | 390 +-- .../v1/GetTransferConfigRequestOrBuilder.java | 58 + .../v1/GetTransferRunRequest.java | 378 +-- .../v1/GetTransferRunRequestOrBuilder.java | 35 +- .../v1/ListDataSourcesRequest.java | 492 ++-- .../v1/ListDataSourcesRequestOrBuilder.java | 47 +- .../v1/ListDataSourcesResponse.java | 502 ++-- .../v1/ListDataSourcesResponseOrBuilder.java | 45 +- .../v1/ListTransferConfigsRequest.java | 607 +++-- .../ListTransferConfigsRequestOrBuilder.java | 65 +- .../v1/ListTransferConfigsResponse.java | 631 +++-- .../ListTransferConfigsResponseOrBuilder.java | 62 +- .../v1/ListTransferLogsRequest.java | 728 ++++-- .../v1/ListTransferLogsRequestOrBuilder.java | 91 +- .../v1/ListTransferLogsResponse.java | 639 +++-- .../v1/ListTransferLogsResponseOrBuilder.java | 61 +- .../v1/ListTransferRunsRequest.java | 806 +++--- .../v1/ListTransferRunsRequestOrBuilder.java | 79 +- .../v1/ListTransferRunsResponse.java | 604 +++-- .../v1/ListTransferRunsResponseOrBuilder.java | 62 +- .../datatransfer/v1/LocationName.java | 0 .../bigquery/datatransfer/v1/ProjectName.java | 0 .../datatransfer/v1/ScheduleOptions.java | 440 ++-- .../v1/ScheduleOptionsOrBuilder.java | 37 +- .../v1/ScheduleTransferRunsRequest.java | 601 +++-- .../ScheduleTransferRunsRequestOrBuilder.java | 60 +- .../v1/ScheduleTransferRunsResponse.java | 443 ++-- ...ScheduleTransferRunsResponseOrBuilder.java | 36 +- .../v1/StartManualTransferRunsRequest.java | 1259 ++++++---- ...artManualTransferRunsRequestOrBuilder.java | 64 +- .../v1/StartManualTransferRunsResponse.java | 460 ++-- ...rtManualTransferRunsResponseOrBuilder.java | 36 +- .../datatransfer/v1/TransferConfig.java | 1726 ++++++++----- .../v1/TransferConfigOrBuilder.java | 194 +- .../datatransfer/v1/TransferMessage.java | 590 +++-- .../v1/TransferMessageOrBuilder.java | 47 +- .../datatransfer/v1/TransferProto.java | 246 ++ .../bigquery/datatransfer/v1/TransferRun.java | 1656 ++++++++----- .../datatransfer/v1/TransferRunOrBuilder.java | 187 +- .../datatransfer/v1/TransferState.java | 107 +- .../datatransfer/v1/TransferType.java | 87 +- .../v1/UpdateTransferConfigRequest.java | 788 +++--- .../UpdateTransferConfigRequestOrBuilder.java | 82 +- .../bigquery/datatransfer/v1/UserInfo.java | 330 +-- .../datatransfer/v1/UserInfoOrBuilder.java | 30 +- .../datatransfer/v1/datatransfer.proto | 0 .../bigquery/datatransfer/v1/transfer.proto | 0 .../v1/DataTransferServiceGrpc.java | 1583 ------------ .../v1/CheckValidCredsRequestOrBuilder.java | 33 - .../v1/CheckValidCredsResponseOrBuilder.java | 19 - .../datatransfer/v1/DataSourceName.java | 313 --- .../datatransfer/v1/DataTransferProto.java | 597 ----- .../DeleteTransferConfigRequestOrBuilder.java | 33 - .../v1/EmailPreferencesOrBuilder.java | 19 - .../v1/GetDataSourceRequestOrBuilder.java | 33 - .../v1/GetTransferConfigRequestOrBuilder.java | 33 - .../bigquery/datatransfer/v1/RunName.java | 371 --- .../datatransfer/v1/TransferConfigName.java | 314 --- .../datatransfer/v1/TransferProto.java | 193 -- 96 files changed, 18098 insertions(+), 11866 deletions(-) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java (99%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java (99%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java (100%) create mode 100644 java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java (63%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java (62%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java (74%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java (80%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java (71%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java (76%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java (75%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java (82%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java (61%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java (61%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java (50%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java (66%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java (67%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java (67%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java (63%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java (61%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java (63%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java (50%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java (67%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java (63%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java (72%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java (69%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java (69%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java (62%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java (55%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java (65%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java (62%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java (62%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java (55%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java (69%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java (73%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java (63%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java (54%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java (76%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java (82%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java (67%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java (68%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java (68%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java (65%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java (66%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java (64%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java (66%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java (65%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java (73%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java (81%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java (68%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java (66%) create mode 100644 java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java (74%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java (82%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java (69%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java (66%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java (74%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java (82%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java (66%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java (52%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto (100%) rename {owl-bot-staging/java-bigquerydatatransfer/v1 => java-bigquerydatatransfer}/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto (100%) delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java delete mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 385249238217..ffeae6482aff 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-bigquerydatatransfer - 2.5.0 + 2.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.5.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.6.0" ``` ## Authentication @@ -159,16 +159,16 @@ Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/bigquery/transfer/ [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview -[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java7.svg -[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java7.html -[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java8.svg -[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java8.html -[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java8-osx.svg -[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java8-osx.html -[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java8-win.svg -[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java8-win.html -[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java11.svg -[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatatransfer/java11.html +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[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-bigquerydatatransfer.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bigquerydatatransfer&core=gav @@ -180,9 +180,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-bigquerydatatransfer/blob/main/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-bigquerydatatransfer/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-bigquerydatatransfer/blob/main/LICENSE +[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 +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=bigquerydatatransfer.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java similarity index 99% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java index d657fbea9989..b7871d755033 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java @@ -31,7 +31,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.datatransfer.v1.stub.DataTransferServiceStubSettings; diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java similarity index 99% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java index 87a470d84a70..0aac6d9569ea 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java @@ -58,7 +58,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-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java rename to java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java new file mode 100644 index 000000000000..9e39394579d1 --- /dev/null +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java @@ -0,0 +1,2184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.datatransfer.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * This API allows users to manage their data transfers into BigQuery.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataTransferServiceGrpc { + + private DataTransferServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.bigquery.datatransfer.v1.DataTransferService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, + com.google.cloud.bigquery.datatransfer.v1.DataSource> + getGetDataSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataSource", + requestType = com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.DataSource.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, + com.google.cloud.bigquery.datatransfer.v1.DataSource> + getGetDataSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, + com.google.cloud.bigquery.datatransfer.v1.DataSource> + getGetDataSourceMethod; + if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { + DataTransferServiceGrpc.getGetDataSourceMethod = + getGetDataSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.DataSource + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("GetDataSource")) + .build(); + } + } + } + return getGetDataSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> + getListDataSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataSources", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> + getListDataSourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> + getListDataSourcesMethod; + if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { + DataTransferServiceGrpc.getListDataSourcesMethod = + getListDataSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("ListDataSources")) + .build(); + } + } + } + return getListDataSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getCreateTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getCreateTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getCreateTransferConfigMethod; + if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getCreateTransferConfigMethod = + getCreateTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("CreateTransferConfig")) + .build(); + } + } + } + return getCreateTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getUpdateTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getUpdateTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getUpdateTransferConfigMethod; + if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getUpdateTransferConfigMethod = + getUpdateTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("UpdateTransferConfig")) + .build(); + } + } + } + return getUpdateTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, + com.google.protobuf.Empty> + getDeleteTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, + com.google.protobuf.Empty> + getDeleteTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, + com.google.protobuf.Empty> + getDeleteTransferConfigMethod; + if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getDeleteTransferConfigMethod = + getDeleteTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("DeleteTransferConfig")) + .build(); + } + } + } + return getDeleteTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getGetTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTransferConfig", + requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getGetTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getGetTransferConfigMethod; + if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getGetTransferConfigMethod = + getGetTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("GetTransferConfig")) + .build(); + } + } + } + return getGetTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> + getListTransferConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTransferConfigs", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> + getListTransferConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> + getListTransferConfigsMethod; + if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) + == null) { + DataTransferServiceGrpc.getListTransferConfigsMethod = + getListTransferConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListTransferConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("ListTransferConfigs")) + .build(); + } + } + } + return getListTransferConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> + getScheduleTransferRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ScheduleTransferRuns", + requestType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> + getScheduleTransferRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> + getScheduleTransferRunsMethod; + if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) + == null) { + DataTransferServiceGrpc.getScheduleTransferRunsMethod = + getScheduleTransferRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ScheduleTransferRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("ScheduleTransferRuns")) + .build(); + } + } + } + return getScheduleTransferRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> + getStartManualTransferRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartManualTransferRuns", + requestType = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, + responseType = + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> + getStartManualTransferRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> + getStartManualTransferRunsMethod; + if ((getStartManualTransferRunsMethod = + DataTransferServiceGrpc.getStartManualTransferRunsMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getStartManualTransferRunsMethod = + DataTransferServiceGrpc.getStartManualTransferRunsMethod) + == null) { + DataTransferServiceGrpc.getStartManualTransferRunsMethod = + getStartManualTransferRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StartManualTransferRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1 + .StartManualTransferRunsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1 + .StartManualTransferRunsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "StartManualTransferRuns")) + .build(); + } + } + } + return getStartManualTransferRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferRun> + getGetTransferRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTransferRun", + requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferRun> + getGetTransferRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferRun> + getGetTransferRunMethod; + if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { + DataTransferServiceGrpc.getGetTransferRunMethod = + getGetTransferRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.TransferRun + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("GetTransferRun")) + .build(); + } + } + } + return getGetTransferRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, + com.google.protobuf.Empty> + getDeleteTransferRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTransferRun", + requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, + com.google.protobuf.Empty> + getDeleteTransferRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, + com.google.protobuf.Empty> + getDeleteTransferRunMethod; + if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) + == null) { + DataTransferServiceGrpc.getDeleteTransferRunMethod = + getDeleteTransferRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTransferRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("DeleteTransferRun")) + .build(); + } + } + } + return getDeleteTransferRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> + getListTransferRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTransferRuns", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> + getListTransferRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> + getListTransferRunsMethod; + if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) + == null) { + DataTransferServiceGrpc.getListTransferRunsMethod = + getListTransferRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("ListTransferRuns")) + .build(); + } + } + } + return getListTransferRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> + getListTransferLogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTransferLogs", + requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> + getListTransferLogsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> + getListTransferLogsMethod; + if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) + == null) { + DataTransferServiceGrpc.getListTransferLogsMethod = + getListTransferLogsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferLogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("ListTransferLogs")) + .build(); + } + } + } + return getListTransferLogsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> + getCheckValidCredsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CheckValidCreds", + requestType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, + responseType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> + getCheckValidCredsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> + getCheckValidCredsMethod; + if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { + DataTransferServiceGrpc.getCheckValidCredsMethod = + getCheckValidCredsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckValidCreds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("CheckValidCreds")) + .build(); + } + } + } + return getCheckValidCredsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, + com.google.protobuf.Empty> + getEnrollDataSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnrollDataSources", + requestType = com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, + com.google.protobuf.Empty> + getEnrollDataSourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, + com.google.protobuf.Empty> + getEnrollDataSourcesMethod; + if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) + == null) { + DataTransferServiceGrpc.getEnrollDataSourcesMethod = + getEnrollDataSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnrollDataSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("EnrollDataSources")) + .build(); + } + } + } + return getEnrollDataSourcesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataTransferServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceStub(channel, callOptions); + } + }; + return DataTransferServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataTransferServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingStub(channel, callOptions); + } + }; + return DataTransferServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataTransferServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceFutureStub(channel, callOptions); + } + }; + return DataTransferServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public abstract static class DataTransferServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public void getDataSource( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public void listDataSources( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataSourcesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public void createTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public void updateTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public void deleteTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public void getTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public void listTransferConfigs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTransferConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public void scheduleTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getScheduleTransferRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public void startManualTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartManualTransferRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public void getTransferRun( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTransferRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public void deleteTransferRun( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTransferRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public void listTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTransferRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public void listTransferLogs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTransferLogsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public void checkValidCreds( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCheckValidCredsMethod(), responseObserver); + } + + /** + * + * + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public void enrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnrollDataSourcesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetDataSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, + com.google.cloud.bigquery.datatransfer.v1.DataSource>( + this, METHODID_GET_DATA_SOURCE))) + .addMethod( + getListDataSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse>( + this, METHODID_LIST_DATA_SOURCES))) + .addMethod( + getCreateTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( + this, METHODID_CREATE_TRANSFER_CONFIG))) + .addMethod( + getUpdateTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( + this, METHODID_UPDATE_TRANSFER_CONFIG))) + .addMethod( + getDeleteTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_TRANSFER_CONFIG))) + .addMethod( + getGetTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( + this, METHODID_GET_TRANSFER_CONFIG))) + .addMethod( + getListTransferConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse>( + this, METHODID_LIST_TRANSFER_CONFIGS))) + .addMethod( + getScheduleTransferRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse>( + this, METHODID_SCHEDULE_TRANSFER_RUNS))) + .addMethod( + getStartManualTransferRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse>( + this, METHODID_START_MANUAL_TRANSFER_RUNS))) + .addMethod( + getGetTransferRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, + com.google.cloud.bigquery.datatransfer.v1.TransferRun>( + this, METHODID_GET_TRANSFER_RUN))) + .addMethod( + getDeleteTransferRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_TRANSFER_RUN))) + .addMethod( + getListTransferRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse>( + this, METHODID_LIST_TRANSFER_RUNS))) + .addMethod( + getListTransferLogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse>( + this, METHODID_LIST_TRANSFER_LOGS))) + .addMethod( + getCheckValidCredsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse>( + this, METHODID_CHECK_VALID_CREDS))) + .addMethod( + getEnrollDataSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, + com.google.protobuf.Empty>(this, METHODID_ENROLL_DATA_SOURCES))) + .build(); + } + } + + /** + * + * + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public static final class DataTransferServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataTransferServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public void getDataSource( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public void listDataSources( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public void createTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public void updateTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public void deleteTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public void getTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public void listTransferConfigs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public void scheduleTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public void startManualTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public void getTransferRun( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public void deleteTransferRun( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public void listTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public void listTransferLogs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public void checkValidCreds( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public void enrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public static final class DataTransferServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataTransferServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse listDataSources( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataSourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig createTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig updateTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public com.google.protobuf.Empty deleteTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + listTransferConfigs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTransferConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + scheduleTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getScheduleTransferRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + startManualTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartManualTransferRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRun( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTransferRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public com.google.protobuf.Empty deleteTransferRun( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTransferRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse listTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTransferRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse listTransferLogs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTransferLogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse checkValidCreds( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckValidCredsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public com.google.protobuf.Empty enrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnrollDataSourcesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * This API allows users to manage their data transfers into BigQuery.
+   * 
+ */ + public static final class DataTransferServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataTransferServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves a supported data source and returns its settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.DataSource> + getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists supported data sources and returns their settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> + listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new data transfer configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + createTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a data transfer configuration.
+     * All fields must be set, even if they are not updated.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + updateTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a data transfer configuration, including any associated transfer
+     * runs and logs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns information about a data transfer config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig> + getTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns information about all transfer configs owned by a project in the
+     * specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> + listTransferConfigs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates transfer runs for a time range [start_time, end_time].
+     * For each date - or whatever granularity the data source supports - in the
+     * range, one transfer run is created.
+     * Note that runs are created per UTC time in the time range.
+     * DEPRECATED: use StartManualTransferRuns instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> + scheduleTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Start manual transfer runs to be executed now with schedule_time equal to
+     * current time. The transfer runs can be created for a time range where the
+     * run_time is between start_time (inclusive) and end_time (exclusive), or for
+     * a specific run_time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> + startManualTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns information about the particular transfer run.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.TransferRun> + getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified transfer run.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTransferRun( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns information about running and completed transfer runs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> + listTransferRuns( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns log messages for the transfer run.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> + listTransferLogs( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns true if valid credentials exist for the given data source and
+     * requesting user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> + checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enroll data sources in a user project. This allows users to create transfer
+     * configurations for these data sources. They will also appear in the
+     * ListDataSources RPC and as such, will appear in the
+     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
+     * can be found in the public guide for
+     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
+     * [Data Transfer
+     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + enrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_DATA_SOURCE = 0; + private static final int METHODID_LIST_DATA_SOURCES = 1; + private static final int METHODID_CREATE_TRANSFER_CONFIG = 2; + private static final int METHODID_UPDATE_TRANSFER_CONFIG = 3; + private static final int METHODID_DELETE_TRANSFER_CONFIG = 4; + private static final int METHODID_GET_TRANSFER_CONFIG = 5; + private static final int METHODID_LIST_TRANSFER_CONFIGS = 6; + private static final int METHODID_SCHEDULE_TRANSFER_RUNS = 7; + private static final int METHODID_START_MANUAL_TRANSFER_RUNS = 8; + private static final int METHODID_GET_TRANSFER_RUN = 9; + private static final int METHODID_DELETE_TRANSFER_RUN = 10; + private static final int METHODID_LIST_TRANSFER_RUNS = 11; + private static final int METHODID_LIST_TRANSFER_LOGS = 12; + private static final int METHODID_CHECK_VALID_CREDS = 13; + private static final int METHODID_ENROLL_DATA_SOURCES = 14; + + 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 DataTransferServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataTransferServiceImplBase 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_GET_DATA_SOURCE: + serviceImpl.getDataSource( + (com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_SOURCES: + serviceImpl.listDataSources( + (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse>) + responseObserver); + break; + case METHODID_CREATE_TRANSFER_CONFIG: + serviceImpl.createTransferConfig( + (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>) + responseObserver); + break; + case METHODID_UPDATE_TRANSFER_CONFIG: + serviceImpl.updateTransferConfig( + (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>) + responseObserver); + break; + case METHODID_DELETE_TRANSFER_CONFIG: + serviceImpl.deleteTransferConfig( + (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TRANSFER_CONFIG: + serviceImpl.getTransferConfig( + (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig>) + responseObserver); + break; + case METHODID_LIST_TRANSFER_CONFIGS: + serviceImpl.listTransferConfigs( + (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse>) + responseObserver); + break; + case METHODID_SCHEDULE_TRANSFER_RUNS: + serviceImpl.scheduleTransferRuns( + (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse>) + responseObserver); + break; + case METHODID_START_MANUAL_TRANSFER_RUNS: + serviceImpl.startManualTransferRuns( + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse>) + responseObserver); + break; + case METHODID_GET_TRANSFER_RUN: + serviceImpl.getTransferRun( + (com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TRANSFER_RUN: + serviceImpl.deleteTransferRun( + (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TRANSFER_RUNS: + serviceImpl.listTransferRuns( + (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse>) + responseObserver); + break; + case METHODID_LIST_TRANSFER_LOGS: + serviceImpl.listTransferLogs( + (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse>) + responseObserver); + break; + case METHODID_CHECK_VALID_CREDS: + serviceImpl.checkValidCreds( + (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse>) + responseObserver); + break; + case METHODID_ENROLL_DATA_SOURCES: + serviceImpl.enrollDataSources( + (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) 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 DataTransferServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataTransferServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataTransferService"); + } + } + + private static final class DataTransferServiceFileDescriptorSupplier + extends DataTransferServiceBaseDescriptorSupplier { + DataTransferServiceFileDescriptorSupplier() {} + } + + private static final class DataTransferServiceMethodDescriptorSupplier + extends DataTransferServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DataTransferServiceMethodDescriptorSupplier(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 (DataTransferServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataTransferServiceFileDescriptorSupplier()) + .addMethod(getGetDataSourceMethod()) + .addMethod(getListDataSourcesMethod()) + .addMethod(getCreateTransferConfigMethod()) + .addMethod(getUpdateTransferConfigMethod()) + .addMethod(getDeleteTransferConfigMethod()) + .addMethod(getGetTransferConfigMethod()) + .addMethod(getListTransferConfigsMethod()) + .addMethod(getScheduleTransferRunsMethod()) + .addMethod(getStartManualTransferRunsMethod()) + .addMethod(getGetTransferRunMethod()) + .addMethod(getDeleteTransferRunMethod()) + .addMethod(getListTransferRunsMethod()) + .addMethod(getListTransferLogsMethod()) + .addMethod(getCheckValidCredsMethod()) + .addMethod(getEnrollDataSourcesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java similarity index 63% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java index 9fb3cfb9944d..20f06318da7a 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to determine whether the user has valid credentials. This method
  * is used to limit the number of OAuth popups in the user interface. The
@@ -15,54 +32,61 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest}
  */
-public final class CheckValidCredsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CheckValidCredsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest)
     CheckValidCredsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CheckValidCredsRequest.newBuilder() to construct.
   private CheckValidCredsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CheckValidCredsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CheckValidCredsRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class,
+            com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The data source in the form:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
    * 
* - * string 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 @@ -71,31 +95,33 @@ 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. The data source in the form:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
    * 
* - * string 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 { @@ -104,6 +130,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,8 +142,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_); } @@ -140,15 +166,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.datatransfer.v1.CheckValidCredsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other = (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other = + (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,96 +194,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest 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.datatransfer.v1.CheckValidCredsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest 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; } /** + * + * *
    * A request to determine whether the user has valid credentials. This method
    * is used to limit the number of OAuth popups in the user interface. The
@@ -269,33 +303,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest}
    */
-  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.datatransfer.v1.CheckValidCredsRequest)
       com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class,
+              com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.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();
@@ -305,13 +338,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance();
     }
 
@@ -326,7 +360,8 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest build()
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest result = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest result =
+          new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -336,46 +371,50 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest buildPar
     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.datatransfer.v1.CheckValidCredsRequest) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest)other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest other) {
+      if (other
+          == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -406,17 +445,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                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) {
@@ -429,20 +470,24 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * string 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; @@ -451,22 +496,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * string 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 { @@ -474,67 +522,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The data source in the form:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -544,41 +605,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckValidCredsRequest 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 CheckValidCredsRequest 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; @@ -590,9 +653,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java new file mode 100644 index 000000000000..b3bd72ca4e83 --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.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/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface CheckValidCredsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The data source in the form:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The data source in the form:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java similarity index 62% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java index bbf869561235..d8ebfaf288de 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A response indicating whether the credentials exist and are valid.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse} */ -public final class CheckValidCredsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CheckValidCredsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) CheckValidCredsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CheckValidCredsResponse.newBuilder() to construct. private CheckValidCredsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CheckValidCredsResponse() { - } + + private CheckValidCredsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CheckValidCredsResponse(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); } public static final int HAS_VALID_CREDS_FIELD_NUMBER = 1; private boolean hasValidCreds_; /** + * + * *
    * If set to `true`, the credentials exist and are valid.
    * 
* * bool has_valid_creds = 1; + * * @return The hasValidCreds. */ @java.lang.Override @@ -63,6 +84,7 @@ public boolean getHasValidCreds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,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 (hasValidCreds_ != false) { output.writeBool(1, hasValidCreds_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (hasValidCreds_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, hasValidCreds_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, hasValidCreds_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,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.datatransfer.v1.CheckValidCredsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other = (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other = + (com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) obj; - if (getHasValidCreds() - != other.getHasValidCreds()) return false; + if (getHasValidCreds() != other.getHasValidCreds()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HAS_VALID_CREDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasValidCreds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasValidCreds()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse + 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.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse 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.datatransfer.v1.CheckValidCredsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse 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; } /** + * + * *
    * A response indicating whether the credentials exist and are valid.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse} */ - 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.datatransfer.v1.CheckValidCredsResponse) com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.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(); @@ -261,13 +289,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance(); } @@ -282,7 +311,8 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse result = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse result = + new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse(this); result.hasValidCreds_ = hasValidCreds_; onBuilt(); return result; @@ -292,46 +322,50 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse buildPa 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.datatransfer.v1.CheckValidCredsResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance()) + return this; if (other.getHasValidCreds() != false) { setHasValidCreds(other.getHasValidCreds()); } @@ -361,17 +395,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - hasValidCreds_ = input.readBool(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + hasValidCreds_ = input.readBool(); + + break; + } // case 8 + 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) { @@ -382,13 +418,16 @@ public Builder mergeFrom( return this; } - private boolean hasValidCreds_ ; + private boolean hasValidCreds_; /** + * + * *
      * If set to `true`, the credentials exist and are valid.
      * 
* * bool has_valid_creds = 1; + * * @return The hasValidCreds. */ @java.lang.Override @@ -396,37 +435,43 @@ public boolean getHasValidCreds() { return hasValidCreds_; } /** + * + * *
      * If set to `true`, the credentials exist and are valid.
      * 
* * bool has_valid_creds = 1; + * * @param value The hasValidCreds to set. * @return This builder for chaining. */ public Builder setHasValidCreds(boolean value) { - + hasValidCreds_ = value; onChanged(); return this; } /** + * + * *
      * If set to `true`, the credentials exist and are valid.
      * 
* * bool has_valid_creds = 1; + * * @return This builder for chaining. */ public Builder clearHasValidCreds() { - + hasValidCreds_ = 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); } @@ -436,41 +481,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckValidCredsResponse 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 CheckValidCredsResponse 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; @@ -482,9 +529,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java new file mode 100644 index 000000000000..4114eed91e95 --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface CheckValidCredsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If set to `true`, the credentials exist and are valid.
+   * 
+ * + * bool has_valid_creds = 1; + * + * @return The hasValidCreds. + */ + boolean getHasValidCreds(); +} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java similarity index 74% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java index f156d7bbca28..5a5bc2e17e56 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to create a data transfer configuration. If new credentials are
  * needed for this transfer configuration, authorization info must be provided.
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest}
  */
-public final class CreateTransferConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest)
     CreateTransferConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateTransferConfigRequest.newBuilder() to construct.
   private CreateTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateTransferConfigRequest() {
     parent_ = "";
     authorizationCode_ = "";
@@ -33,32 +51,35 @@ private CreateTransferConfigRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateTransferConfigRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class,
+            com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The BigQuery project id where the transfer configuration should be created.
    * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -66,7 +87,10 @@ protected java.lang.Object newInstance(
    * destination bigquery dataset do not match - the request will fail.
    * 
* - * string 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 @@ -75,14 +99,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The BigQuery project id where the transfer configuration should be created.
    * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -90,17 +115,18 @@ public java.lang.String getParent() {
    * destination bigquery dataset do not match - the request will fail.
    * 
* - * string 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 { @@ -111,11 +137,16 @@ public java.lang.String getParent() { public static final int TRANSFER_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_; /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the transferConfig field is set. */ @java.lang.Override @@ -123,32 +154,46 @@ public boolean hasTransferConfig() { return transferConfig_ != null; } /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The transferConfig. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { - return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; + return transferConfig_ == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() + : transferConfig_; } /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder + getTransferConfigOrBuilder() { return getTransferConfig(); } public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object authorizationCode_; /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -166,6 +211,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran
    * 
* * string authorization_code = 3; + * * @return The authorizationCode. */ @java.lang.Override @@ -174,14 +220,15 @@ public java.lang.String getAuthorizationCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; } } /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -199,16 +246,15 @@ public java.lang.String getAuthorizationCode() {
    * 
* * string authorization_code = 3; + * * @return The bytes for authorizationCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -219,6 +265,8 @@ public java.lang.String getAuthorizationCode() { public static final int VERSION_INFO_FIELD_NUMBER = 5; private volatile java.lang.Object versionInfo_; /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -236,6 +284,7 @@ public java.lang.String getAuthorizationCode() {
    * 
* * string version_info = 5; + * * @return The versionInfo. */ @java.lang.Override @@ -244,14 +293,15 @@ public java.lang.String getVersionInfo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } } /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -269,16 +319,15 @@ public java.lang.String getVersionInfo() {
    * 
* * string version_info = 5; + * * @return The bytes for versionInfo. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionInfoBytes() { + public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -289,6 +338,8 @@ public java.lang.String getVersionInfo() { public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountName_; /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -301,6 +352,7 @@ public java.lang.String getVersionInfo() {
    * 
* * string service_account_name = 6; + * * @return The serviceAccountName. */ @java.lang.Override @@ -309,14 +361,15 @@ public java.lang.String getServiceAccountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; } } /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -329,16 +382,15 @@ public java.lang.String getServiceAccountName() {
    * 
* * string service_account_name = 6; + * * @return The bytes for serviceAccountName. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { + public com.google.protobuf.ByteString getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -347,6 +399,7 @@ public java.lang.String getServiceAccountName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,8 +411,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_); } @@ -388,8 +440,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (transferConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTransferConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransferConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authorizationCode_); @@ -408,26 +459,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.datatransfer.v1.CreateTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other = + (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasTransferConfig() != other.hasTransferConfig()) return false; if (hasTransferConfig()) { - if (!getTransferConfig() - .equals(other.getTransferConfig())) return false; - } - if (!getAuthorizationCode() - .equals(other.getAuthorizationCode())) return false; - if (!getVersionInfo() - .equals(other.getVersionInfo())) return false; - if (!getServiceAccountName() - .equals(other.getServiceAccountName())) return false; + if (!getTransferConfig().equals(other.getTransferConfig())) return false; + } + if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; + if (!getVersionInfo().equals(other.getVersionInfo())) return false; + if (!getServiceAccountName().equals(other.getServiceAccountName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -457,96 +504,105 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest + 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.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest 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.datatransfer.v1.CreateTransferConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest 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; } /** + * + * *
    * A request to create a data transfer configuration. If new credentials are
    * needed for this transfer configuration, authorization info must be provided.
@@ -558,33 +614,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest}
    */
-  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.datatransfer.v1.CreateTransferConfigRequest)
       com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class,
+              com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.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();
@@ -606,14 +662,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.getDefaultInstance();
+    public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -627,7 +685,8 @@ public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest bui
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest result =
+          new com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest(this);
       result.parent_ = parent_;
       if (transferConfigBuilder_ == null) {
         result.transferConfig_ = transferConfig_;
@@ -645,46 +704,51 @@ public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest bui
     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.datatransfer.v1.CreateTransferConfigRequest) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest)other);
+        return mergeFrom(
+            (com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest other) {
+      if (other
+          == com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -730,39 +794,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTransferConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTransferConfigFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 26: {
-              authorizationCode_ = input.readStringRequireUtf8();
+                break;
+              } // case 18
+            case 26:
+              {
+                authorizationCode_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 26
-            case 42: {
-              versionInfo_ = input.readStringRequireUtf8();
+                break;
+              } // case 26
+            case 42:
+              {
+                versionInfo_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 42
-            case 50: {
-              serviceAccountName_ = input.readStringRequireUtf8();
+                break;
+              } // case 42
+            case 50:
+              {
+                serviceAccountName_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 50
+            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) {
@@ -775,6 +843,8 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -782,14 +852,16 @@ public Builder mergeFrom(
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * string 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; @@ -798,6 +870,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -805,16 +879,17 @@ public java.lang.String getParent() {
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * string 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 { @@ -822,6 +897,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -829,21 +906,25 @@ public java.lang.String getParent() {
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -851,16 +932,21 @@ public Builder setParent(
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The BigQuery project id where the transfer configuration should be created.
      * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -868,17 +954,19 @@ public Builder clearParent() {
      * destination bigquery dataset do not match - the request will fail.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -886,41 +974,61 @@ public Builder setParentBytes( private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> transferConfigBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + transferConfigBuilder_; /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the transferConfig field is set. */ public boolean hasTransferConfig() { return transferConfigBuilder_ != null || transferConfig_ != null; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The transferConfig. */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { if (transferConfigBuilder_ == null) { - return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; + return transferConfig_ == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() + : transferConfig_; } else { return transferConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder setTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -934,11 +1042,15 @@ public Builder setTransferConfig(com.google.cloud.bigquery.datatransfer.v1.Trans return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTransferConfig( com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { @@ -952,17 +1064,24 @@ public Builder setTransferConfig( return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder mergeTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (transferConfig_ != null) { transferConfig_ = - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_) + .mergeFrom(value) + .buildPartial(); } else { transferConfig_ = value; } @@ -974,11 +1093,15 @@ public Builder mergeTransferConfig(com.google.cloud.bigquery.datatransfer.v1.Tra return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTransferConfig() { if (transferConfigBuilder_ == null) { @@ -992,48 +1115,66 @@ public Builder clearTransferConfig() { return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder getTransferConfigBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder + getTransferConfigBuilder() { + onChanged(); return getTransferConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder + getTransferConfigOrBuilder() { if (transferConfigBuilder_ != null) { return transferConfigBuilder_.getMessageOrBuilder(); } else { - return transferConfig_ == null ? - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; + return transferConfig_ == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() + : transferConfig_; } } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> getTransferConfigFieldBuilder() { if (transferConfigBuilder_ == null) { - transferConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( - getTransferConfig(), - getParentForChildren(), - isClean()); + transferConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( + getTransferConfig(), getParentForChildren(), isClean()); transferConfig_ = null; } return transferConfigBuilder_; @@ -1041,6 +1182,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran private java.lang.Object authorizationCode_ = ""; /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1058,13 +1201,13 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran
      * 
* * string authorization_code = 3; + * * @return The authorizationCode. */ public java.lang.String getAuthorizationCode() { java.lang.Object ref = authorizationCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; @@ -1073,6 +1216,8 @@ public java.lang.String getAuthorizationCode() { } } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1090,15 +1235,14 @@ public java.lang.String getAuthorizationCode() {
      * 
* * string authorization_code = 3; + * * @return The bytes for authorizationCode. */ - public com.google.protobuf.ByteString - getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -1106,6 +1250,8 @@ public java.lang.String getAuthorizationCode() { } } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1123,20 +1269,22 @@ public java.lang.String getAuthorizationCode() {
      * 
* * string authorization_code = 3; + * * @param value The authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCode( - java.lang.String value) { + public Builder setAuthorizationCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizationCode_ = value; onChanged(); return this; } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1154,15 +1302,18 @@ public Builder setAuthorizationCode(
      * 
* * string authorization_code = 3; + * * @return This builder for chaining. */ public Builder clearAuthorizationCode() { - + authorizationCode_ = getDefaultInstance().getAuthorizationCode(); onChanged(); return this; } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1180,16 +1331,16 @@ public Builder clearAuthorizationCode() {
      * 
* * string authorization_code = 3; + * * @param value The bytes for authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationCode_ = value; onChanged(); return this; @@ -1197,6 +1348,8 @@ public Builder setAuthorizationCodeBytes( private java.lang.Object versionInfo_ = ""; /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1214,13 +1367,13 @@ public Builder setAuthorizationCodeBytes(
      * 
* * string version_info = 5; + * * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; @@ -1229,6 +1382,8 @@ public java.lang.String getVersionInfo() { } } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1246,15 +1401,14 @@ public java.lang.String getVersionInfo() {
      * 
* * string version_info = 5; + * * @return The bytes for versionInfo. */ - public com.google.protobuf.ByteString - getVersionInfoBytes() { + public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -1262,6 +1416,8 @@ public java.lang.String getVersionInfo() { } } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1279,20 +1435,22 @@ public java.lang.String getVersionInfo() {
      * 
* * string version_info = 5; + * * @param value The versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfo( - java.lang.String value) { + public Builder setVersionInfo(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + versionInfo_ = value; onChanged(); return this; } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1310,15 +1468,18 @@ public Builder setVersionInfo(
      * 
* * string version_info = 5; + * * @return This builder for chaining. */ public Builder clearVersionInfo() { - + versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1336,16 +1497,16 @@ public Builder clearVersionInfo() {
      * 
* * string version_info = 5; + * * @param value The bytes for versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfoBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + versionInfo_ = value; onChanged(); return this; @@ -1353,6 +1514,8 @@ public Builder setVersionInfoBytes( private java.lang.Object serviceAccountName_ = ""; /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1365,13 +1528,13 @@ public Builder setVersionInfoBytes(
      * 
* * string service_account_name = 6; + * * @return The serviceAccountName. */ public java.lang.String getServiceAccountName() { java.lang.Object ref = serviceAccountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; @@ -1380,6 +1543,8 @@ public java.lang.String getServiceAccountName() { } } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1392,15 +1557,14 @@ public java.lang.String getServiceAccountName() {
      * 
* * string service_account_name = 6; + * * @return The bytes for serviceAccountName. */ - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { + public com.google.protobuf.ByteString getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -1408,6 +1572,8 @@ public java.lang.String getServiceAccountName() { } } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1420,20 +1586,22 @@ public java.lang.String getServiceAccountName() {
      * 
* * string service_account_name = 6; + * * @param value The serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountName( - java.lang.String value) { + public Builder setServiceAccountName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountName_ = value; onChanged(); return this; } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1446,15 +1614,18 @@ public Builder setServiceAccountName(
      * 
* * string service_account_name = 6; + * * @return This builder for chaining. */ public Builder clearServiceAccountName() { - + serviceAccountName_ = getDefaultInstance().getServiceAccountName(); onChanged(); return this; } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1467,23 +1638,23 @@ public Builder clearServiceAccountName() {
      * 
* * string service_account_name = 6; + * * @param value The bytes for serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountNameBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1493,41 +1664,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTransferConfigRequest 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 CreateTransferConfigRequest 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; @@ -1539,9 +1712,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java index c69646c59657..7bf5666e2238 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface CreateTransferConfigRequestOrBuilder extends +public interface CreateTransferConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The BigQuery project id where the transfer configuration should be created.
    * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -15,11 +33,16 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * destination bigquery dataset do not match - the request will fail.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The BigQuery project id where the transfer configuration should be created.
    * Must be in the format projects/{project_id}/locations/{location_id} or
@@ -27,40 +50,58 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * destination bigquery dataset do not match - the request will fail.
    * 
* - * string 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. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the transferConfig field is set. */ boolean hasTransferConfig(); /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The transferConfig. */ com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(); /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder(); /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -78,10 +119,13 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * 
* * string authorization_code = 3; + * * @return The authorizationCode. */ java.lang.String getAuthorizationCode(); /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -99,12 +143,14 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * 
* * string authorization_code = 3; + * * @return The bytes for authorizationCode. */ - com.google.protobuf.ByteString - getAuthorizationCodeBytes(); + com.google.protobuf.ByteString getAuthorizationCodeBytes(); /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -122,10 +168,13 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * 
* * string version_info = 5; + * * @return The versionInfo. */ java.lang.String getVersionInfo(); /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -143,12 +192,14 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * 
* * string version_info = 5; + * * @return The bytes for versionInfo. */ - com.google.protobuf.ByteString - getVersionInfoBytes(); + com.google.protobuf.ByteString getVersionInfoBytes(); /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -161,10 +212,13 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * 
* * string service_account_name = 6; + * * @return The serviceAccountName. */ java.lang.String getServiceAccountName(); /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -177,8 +231,8 @@ public interface CreateTransferConfigRequestOrBuilder extends
    * 
* * string service_account_name = 6; + * * @return The bytes for serviceAccountName. */ - com.google.protobuf.ByteString - getServiceAccountNameBytes(); + com.google.protobuf.ByteString getServiceAccountNameBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java similarity index 71% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java index 91e1eef1f21f..16ff04e4f8e1 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Defines the properties and custom parameters for a data source.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSource} */ -public final class DataSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DataSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DataSource) DataSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataSource.newBuilder() to construct. private DataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DataSource() { name_ = ""; dataSourceId_ = ""; @@ -36,39 +54,43 @@ private DataSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataSource(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSource.class, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSource.class, + com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); } /** + * + * *
    * The type of authorization needed for this data source.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType} */ - public enum AuthorizationType - implements com.google.protobuf.ProtocolMessageEnum { + public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Type unspecified.
      * 
@@ -77,6 +99,8 @@ public enum AuthorizationType */ AUTHORIZATION_TYPE_UNSPECIFIED(0), /** + * + * *
      * Use OAuth 2 authorization codes that can be exchanged
      * for a refresh token on the backend.
@@ -86,6 +110,8 @@ public enum AuthorizationType
      */
     AUTHORIZATION_CODE(1),
     /**
+     *
+     *
      * 
      * Return an authorization code for a given Google+ page that can then be
      * exchanged for a refresh token on the backend.
@@ -95,6 +121,8 @@ public enum AuthorizationType
      */
     GOOGLE_PLUS_AUTHORIZATION_CODE(2),
     /**
+     *
+     *
      * 
      * Use First Party OAuth.
      * 
@@ -106,6 +134,8 @@ public enum AuthorizationType ; /** + * + * *
      * Type unspecified.
      * 
@@ -114,6 +144,8 @@ public enum AuthorizationType */ public static final int AUTHORIZATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use OAuth 2 authorization codes that can be exchanged
      * for a refresh token on the backend.
@@ -123,6 +155,8 @@ public enum AuthorizationType
      */
     public static final int AUTHORIZATION_CODE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Return an authorization code for a given Google+ page that can then be
      * exchanged for a refresh token on the backend.
@@ -132,6 +166,8 @@ public enum AuthorizationType
      */
     public static final int GOOGLE_PLUS_AUTHORIZATION_CODE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Use First Party OAuth.
      * 
@@ -140,7 +176,6 @@ public enum AuthorizationType */ public static final int FIRST_PARTY_OAUTH_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,11 +200,16 @@ public static AuthorizationType valueOf(int value) { */ public static AuthorizationType forNumber(int value) { switch (value) { - case 0: return AUTHORIZATION_TYPE_UNSPECIFIED; - case 1: return AUTHORIZATION_CODE; - case 2: return GOOGLE_PLUS_AUTHORIZATION_CODE; - case 3: return FIRST_PARTY_OAUTH; - default: return null; + case 0: + return AUTHORIZATION_TYPE_UNSPECIFIED; + case 1: + return AUTHORIZATION_CODE; + case 2: + return GOOGLE_PLUS_AUTHORIZATION_CODE; + case 3: + return FIRST_PARTY_OAUTH; + default: + return null; } } @@ -177,29 +217,31 @@ public static AuthorizationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AuthorizationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AuthorizationType findValueByNumber(int number) { - return AuthorizationType.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 AuthorizationType findValueByNumber(int number) { + return AuthorizationType.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.datatransfer.v1.DataSource.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataSource.getDescriptor() + .getEnumTypes() + .get(0); } private static final AuthorizationType[] VALUES = values(); @@ -207,8 +249,7 @@ public AuthorizationType findValueByNumber(int number) { public static AuthorizationType 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; @@ -226,15 +267,18 @@ private AuthorizationType(int value) { } /** + * + * *
    * Represents how the data source supports data auto refresh.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType} */ - public enum DataRefreshType - implements com.google.protobuf.ProtocolMessageEnum { + public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The data source won't support data auto refresh, which is default value.
      * 
@@ -243,6 +287,8 @@ public enum DataRefreshType */ DATA_REFRESH_TYPE_UNSPECIFIED(0), /** + * + * *
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Does not allow custom values to be set for each
@@ -253,6 +299,8 @@ public enum DataRefreshType
      */
     SLIDING_WINDOW(1),
     /**
+     *
+     *
      * 
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Allows custom values to be set for each transfer
@@ -266,6 +314,8 @@ public enum DataRefreshType
     ;
 
     /**
+     *
+     *
      * 
      * The data source won't support data auto refresh, which is default value.
      * 
@@ -274,6 +324,8 @@ public enum DataRefreshType */ public static final int DATA_REFRESH_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Does not allow custom values to be set for each
@@ -284,6 +336,8 @@ public enum DataRefreshType
      */
     public static final int SLIDING_WINDOW_VALUE = 1;
     /**
+     *
+     *
      * 
      * The data source supports data auto refresh, and runs will be scheduled
      * for the past few days. Allows custom values to be set for each transfer
@@ -294,7 +348,6 @@ public enum DataRefreshType
      */
     public static final int CUSTOM_SLIDING_WINDOW_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -319,40 +372,45 @@ public static DataRefreshType valueOf(int value) {
      */
     public static DataRefreshType forNumber(int value) {
       switch (value) {
-        case 0: return DATA_REFRESH_TYPE_UNSPECIFIED;
-        case 1: return SLIDING_WINDOW;
-        case 2: return CUSTOM_SLIDING_WINDOW;
-        default: return null;
+        case 0:
+          return DATA_REFRESH_TYPE_UNSPECIFIED;
+        case 1:
+          return SLIDING_WINDOW;
+        case 2:
+          return CUSTOM_SLIDING_WINDOW;
+        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<
-        DataRefreshType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DataRefreshType findValueByNumber(int number) {
-              return DataRefreshType.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 DataRefreshType findValueByNumber(int number) {
+                return DataRefreshType.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.datatransfer.v1.DataSource.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataSource.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     private static final DataRefreshType[] VALUES = values();
@@ -360,8 +418,7 @@ public DataRefreshType findValueByNumber(int number) {
     public static DataRefreshType 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;
@@ -381,11 +438,14 @@ private DataRefreshType(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -394,29 +454,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -427,11 +487,14 @@ public java.lang.String getName() { public static final int DATA_SOURCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dataSourceId_; /** + * + * *
    * Data source id.
    * 
* * string data_source_id = 2; + * * @return The dataSourceId. */ @java.lang.Override @@ -440,29 +503,29 @@ public java.lang.String getDataSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; } } /** + * + * *
    * Data source id.
    * 
* * string data_source_id = 2; + * * @return The bytes for dataSourceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataSourceIdBytes() { + public com.google.protobuf.ByteString getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -473,11 +536,14 @@ public java.lang.String getDataSourceId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** + * + * *
    * User friendly data source name.
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -486,29 +552,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * User friendly data source name.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -519,11 +585,14 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** + * + * *
    * User friendly data source description string.
    * 
* * string description = 4; + * * @return The description. */ @java.lang.Override @@ -532,29 +601,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 friendly data source description string.
    * 
* * string description = 4; + * * @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 { @@ -565,11 +634,14 @@ public java.lang.String getDescription() { public static final int CLIENT_ID_FIELD_NUMBER = 5; private volatile java.lang.Object clientId_; /** + * + * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; + * * @return The clientId. */ @java.lang.Override @@ -578,29 +650,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; } } /** + * + * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; + * * @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 { @@ -611,6 +683,8 @@ public java.lang.String getClientId() { public static final int SCOPES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList scopes_; /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -618,13 +692,15 @@ public java.lang.String getClientId() {
    * 
* * repeated string scopes = 6; + * * @return A list containing the scopes. */ - public com.google.protobuf.ProtocolStringList - getScopesList() { + public com.google.protobuf.ProtocolStringList getScopesList() { return scopes_; } /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -632,12 +708,15 @@ public java.lang.String getClientId() {
    * 
* * repeated string scopes = 6; + * * @return The count of scopes. */ public int getScopesCount() { return scopes_.size(); } /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -645,6 +724,7 @@ public int getScopesCount() {
    * 
* * repeated string scopes = 6; + * * @param index The index of the element to return. * @return The scopes at the given index. */ @@ -652,6 +732,8 @@ public java.lang.String getScopes(int index) { return scopes_.get(index); } /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -659,71 +741,95 @@ public java.lang.String getScopes(int index) {
    * 
* * repeated string scopes = 6; + * * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ - public com.google.protobuf.ByteString - getScopesBytes(int index) { + public com.google.protobuf.ByteString getScopesBytes(int index) { return scopes_.getByteString(index); } public static final int TRANSFER_TYPE_FIELD_NUMBER = 7; private int transferType_; /** + * + * *
    * Deprecated. This field has no effect.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The enum numeric value on the wire for transferType. */ - @java.lang.Override @java.lang.Deprecated public int getTransferTypeValue() { + @java.lang.Override + @java.lang.Deprecated + public int getTransferTypeValue() { return transferType_; } /** + * + * *
    * Deprecated. This field has no effect.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The transferType. */ - @java.lang.Override @java.lang.Deprecated public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferType result = com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferType result = + com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED + : result; } public static final int SUPPORTS_MULTIPLE_TRANSFERS_FIELD_NUMBER = 8; private boolean supportsMultipleTransfers_; /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return The supportsMultipleTransfers. */ @java.lang.Override - @java.lang.Deprecated public boolean getSupportsMultipleTransfers() { + @java.lang.Deprecated + public boolean getSupportsMultipleTransfers() { return supportsMultipleTransfers_; } public static final int UPDATE_DEADLINE_SECONDS_FIELD_NUMBER = 9; private int updateDeadlineSeconds_; /** + * + * *
    * The number of seconds to wait for an update from the data source
    * before the Data Transfer Service marks the transfer as FAILED.
    * 
* * int32 update_deadline_seconds = 9; + * * @return The updateDeadlineSeconds. */ @java.lang.Override @@ -734,6 +840,8 @@ public int getUpdateDeadlineSeconds() { public static final int DEFAULT_SCHEDULE_FIELD_NUMBER = 10; private volatile java.lang.Object defaultSchedule_; /** + * + * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -743,6 +851,7 @@ public int getUpdateDeadlineSeconds() {
    * 
* * string default_schedule = 10; + * * @return The defaultSchedule. */ @java.lang.Override @@ -751,14 +860,15 @@ public java.lang.String getDefaultSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultSchedule_ = s; return s; } } /** + * + * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -768,16 +878,15 @@ public java.lang.String getDefaultSchedule() {
    * 
* * string default_schedule = 10; + * * @return The bytes for defaultSchedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getDefaultScheduleBytes() { + public com.google.protobuf.ByteString getDefaultScheduleBytes() { java.lang.Object ref = defaultSchedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultSchedule_ = b; return b; } else { @@ -788,6 +897,8 @@ public java.lang.String getDefaultSchedule() { public static final int SUPPORTS_CUSTOM_SCHEDULE_FIELD_NUMBER = 11; private boolean supportsCustomSchedule_; /** + * + * *
    * Specifies whether the data source supports a user defined schedule, or
    * operates on the default schedule.
@@ -795,6 +906,7 @@ public java.lang.String getDefaultSchedule() {
    * 
* * bool supports_custom_schedule = 11; + * * @return The supportsCustomSchedule. */ @java.lang.Override @@ -805,71 +917,91 @@ public boolean getSupportsCustomSchedule() { public static final int PARAMETERS_FIELD_NUMBER = 12; private java.util.List parameters_; /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ @java.lang.Override - public java.util.List getParametersList() { + public java.util.List + getParametersList() { return parameters_; } /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> getParametersOrBuilderList() { return parameters_; } /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParameters(int index) { return parameters_.get(index); } /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParametersOrBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder + getParametersOrBuilder(int index) { return parameters_.get(index); } public static final int HELP_URL_FIELD_NUMBER = 13; private volatile java.lang.Object helpUrl_; /** + * + * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; + * * @return The helpUrl. */ @java.lang.Override @@ -878,29 +1010,29 @@ public java.lang.String getHelpUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); helpUrl_ = s; return s; } } /** + * + * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; + * * @return The bytes for helpUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getHelpUrlBytes() { + public com.google.protobuf.ByteString getHelpUrlBytes() { java.lang.Object ref = helpUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); helpUrl_ = b; return b; } else { @@ -911,33 +1043,52 @@ public java.lang.String getHelpUrl() { public static final int AUTHORIZATION_TYPE_FIELD_NUMBER = 14; private int authorizationType_; /** + * + * *
    * Indicates the type of authorization.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @return The enum numeric value on the wire for authorizationType. */ - @java.lang.Override public int getAuthorizationTypeValue() { + @java.lang.Override + public int getAuthorizationTypeValue() { return authorizationType_; } /** + * + * *
    * Indicates the type of authorization.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @return The authorizationType. */ - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType() { + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType + getAuthorizationType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf(authorizationType_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = + com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf( + authorizationType_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED + : result; } public static final int DATA_REFRESH_TYPE_FIELD_NUMBER = 15; private int dataRefreshType_; /** + * + * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -945,13 +1096,18 @@ public java.lang.String getHelpUrl() {
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @return The enum numeric value on the wire for dataRefreshType. */ - @java.lang.Override public int getDataRefreshTypeValue() { + @java.lang.Override + public int getDataRefreshTypeValue() { return dataRefreshType_; } /** + * + * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -959,24 +1115,34 @@ public java.lang.String getHelpUrl() {
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @return The dataRefreshType. */ - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf(dataRefreshType_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = + com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf( + dataRefreshType_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED + : result; } public static final int DEFAULT_DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER = 16; private int defaultDataRefreshWindowDays_; /** + * + * *
    * Default data refresh window on days.
    * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
    * 
* * int32 default_data_refresh_window_days = 16; + * * @return The defaultDataRefreshWindowDays. */ @java.lang.Override @@ -987,12 +1153,15 @@ public int getDefaultDataRefreshWindowDays() { public static final int MANUAL_RUNS_DISABLED_FIELD_NUMBER = 17; private boolean manualRunsDisabled_; /** + * + * *
    * Disables backfilling and manual run scheduling
    * for the data source.
    * 
* * bool manual_runs_disabled = 17; + * * @return The manualRunsDisabled. */ @java.lang.Override @@ -1003,11 +1172,14 @@ public boolean getManualRunsDisabled() { public static final int MINIMUM_SCHEDULE_INTERVAL_FIELD_NUMBER = 18; private com.google.protobuf.Duration minimumScheduleInterval_; /** + * + * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; + * * @return Whether the minimumScheduleInterval field is set. */ @java.lang.Override @@ -1015,18 +1187,25 @@ public boolean hasMinimumScheduleInterval() { return minimumScheduleInterval_ != null; } /** + * + * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; + * * @return The minimumScheduleInterval. */ @java.lang.Override public com.google.protobuf.Duration getMinimumScheduleInterval() { - return minimumScheduleInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumScheduleInterval_; + return minimumScheduleInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumScheduleInterval_; } /** + * + * *
    * The minimum interval for scheduler to schedule runs.
    * 
@@ -1039,6 +1218,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1050,8 +1230,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_); } @@ -1070,7 +1249,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < scopes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, scopes_.getRaw(i)); } - if (transferType_ != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { + if (transferType_ + != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(7, transferType_); } if (supportsMultipleTransfers_ != false) { @@ -1091,10 +1272,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(helpUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, helpUrl_); } - if (authorizationType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED.getNumber()) { + if (authorizationType_ + != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType + .AUTHORIZATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(14, authorizationType_); } - if (dataRefreshType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.DATA_REFRESH_TYPE_UNSPECIFIED.getNumber()) { + if (dataRefreshType_ + != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType + .DATA_REFRESH_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(15, dataRefreshType_); } if (defaultDataRefreshWindowDays_ != 0) { @@ -1138,51 +1325,52 @@ public int getSerializedSize() { size += dataSize; size += 1 * getScopesList().size(); } - if (transferType_ != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, transferType_); + if (transferType_ + != com.google.cloud.bigquery.datatransfer.v1.TransferType.TRANSFER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, transferType_); } if (supportsMultipleTransfers_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, supportsMultipleTransfers_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, supportsMultipleTransfers_); } if (updateDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, updateDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, updateDeadlineSeconds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, defaultSchedule_); } if (supportsCustomSchedule_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, supportsCustomSchedule_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, supportsCustomSchedule_); } for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, parameters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, parameters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(helpUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, helpUrl_); } - if (authorizationType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, authorizationType_); + if (authorizationType_ + != com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType + .AUTHORIZATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, authorizationType_); } - if (dataRefreshType_ != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.DATA_REFRESH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, dataRefreshType_); + if (dataRefreshType_ + != com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType + .DATA_REFRESH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, dataRefreshType_); } if (defaultDataRefreshWindowDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, defaultDataRefreshWindowDays_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(16, defaultDataRefreshWindowDays_); } if (manualRunsDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, manualRunsDisabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, manualRunsDisabled_); } if (minimumScheduleInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getMinimumScheduleInterval()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, getMinimumScheduleInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1192,48 +1380,34 @@ 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.datatransfer.v1.DataSource)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DataSource other = (com.google.cloud.bigquery.datatransfer.v1.DataSource) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDataSourceId() - .equals(other.getDataSourceId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getScopesList() - .equals(other.getScopesList())) return false; + com.google.cloud.bigquery.datatransfer.v1.DataSource other = + (com.google.cloud.bigquery.datatransfer.v1.DataSource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDataSourceId().equals(other.getDataSourceId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; if (transferType_ != other.transferType_) return false; - if (getSupportsMultipleTransfers() - != other.getSupportsMultipleTransfers()) return false; - if (getUpdateDeadlineSeconds() - != other.getUpdateDeadlineSeconds()) return false; - if (!getDefaultSchedule() - .equals(other.getDefaultSchedule())) return false; - if (getSupportsCustomSchedule() - != other.getSupportsCustomSchedule()) return false; - if (!getParametersList() - .equals(other.getParametersList())) return false; - if (!getHelpUrl() - .equals(other.getHelpUrl())) return false; + if (getSupportsMultipleTransfers() != other.getSupportsMultipleTransfers()) return false; + if (getUpdateDeadlineSeconds() != other.getUpdateDeadlineSeconds()) return false; + if (!getDefaultSchedule().equals(other.getDefaultSchedule())) return false; + if (getSupportsCustomSchedule() != other.getSupportsCustomSchedule()) return false; + if (!getParametersList().equals(other.getParametersList())) return false; + if (!getHelpUrl().equals(other.getHelpUrl())) return false; if (authorizationType_ != other.authorizationType_) return false; if (dataRefreshType_ != other.dataRefreshType_) return false; - if (getDefaultDataRefreshWindowDays() - != other.getDefaultDataRefreshWindowDays()) return false; - if (getManualRunsDisabled() - != other.getManualRunsDisabled()) return false; + if (getDefaultDataRefreshWindowDays() != other.getDefaultDataRefreshWindowDays()) return false; + if (getManualRunsDisabled() != other.getManualRunsDisabled()) return false; if (hasMinimumScheduleInterval() != other.hasMinimumScheduleInterval()) return false; if (hasMinimumScheduleInterval()) { - if (!getMinimumScheduleInterval() - .equals(other.getMinimumScheduleInterval())) return false; + if (!getMinimumScheduleInterval().equals(other.getMinimumScheduleInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1263,15 +1437,13 @@ public int hashCode() { hash = (37 * hash) + TRANSFER_TYPE_FIELD_NUMBER; hash = (53 * hash) + transferType_; hash = (37 * hash) + SUPPORTS_MULTIPLE_TRANSFERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportsMultipleTransfers()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsMultipleTransfers()); hash = (37 * hash) + UPDATE_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getUpdateDeadlineSeconds(); hash = (37 * hash) + DEFAULT_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getDefaultSchedule().hashCode(); hash = (37 * hash) + SUPPORTS_CUSTOM_SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportsCustomSchedule()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsCustomSchedule()); if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); @@ -1285,8 +1457,7 @@ public int hashCode() { hash = (37 * hash) + DEFAULT_DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER; hash = (53 * hash) + getDefaultDataRefreshWindowDays(); hash = (37 * hash) + MANUAL_RUNS_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getManualRunsDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManualRunsDisabled()); if (hasMinimumScheduleInterval()) { hash = (37 * hash) + MINIMUM_SCHEDULE_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getMinimumScheduleInterval().hashCode(); @@ -1297,129 +1468,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DataSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DataSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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.datatransfer.v1.DataSource 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; } /** + * + * *
    * Defines the properties and custom parameters for a data source.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSource} */ - 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.datatransfer.v1.DataSource) com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSource.class, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSource.class, + com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.DataSource.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(); @@ -1472,9 +1649,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } @java.lang.Override @@ -1493,7 +1670,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.DataSource result = new com.google.cloud.bigquery.datatransfer.v1.DataSource(this); + com.google.cloud.bigquery.datatransfer.v1.DataSource result = + new com.google.cloud.bigquery.datatransfer.v1.DataSource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.dataSourceId_ = dataSourceId_; @@ -1537,38 +1715,39 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.DataSource) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSource)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSource) other); } else { super.mergeFrom(other); return this; @@ -1576,7 +1755,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSource other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1641,9 +1821,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSource ot parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000002); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParametersFieldBuilder() : null; + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParametersFieldBuilder() + : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } @@ -1694,113 +1875,131 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - dataSourceId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - clientId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureScopesIsMutable(); - scopes_.add(s); - break; - } // case 50 - case 56: { - transferType_ = input.readEnum(); - - break; - } // case 56 - case 64: { - supportsMultipleTransfers_ = input.readBool(); - - break; - } // case 64 - case 72: { - updateDeadlineSeconds_ = input.readInt32(); - - break; - } // case 72 - case 82: { - defaultSchedule_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 88: { - supportsCustomSchedule_ = input.readBool(); - - break; - } // case 88 - case 98: { - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), - extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: { - helpUrl_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: { - authorizationType_ = input.readEnum(); - - break; - } // case 112 - case 120: { - dataRefreshType_ = input.readEnum(); - - break; - } // case 120 - case 128: { - defaultDataRefreshWindowDays_ = input.readInt32(); - - break; - } // case 128 - case 136: { - manualRunsDisabled_ = input.readBool(); - - break; - } // case 136 - case 146: { - input.readMessage( - getMinimumScheduleIntervalFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 146 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + dataSourceId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + clientId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 50 + case 56: + { + transferType_ = input.readEnum(); + + break; + } // case 56 + case 64: + { + supportsMultipleTransfers_ = input.readBool(); + + break; + } // case 64 + case 72: + { + updateDeadlineSeconds_ = input.readInt32(); + + break; + } // case 72 + case 82: + { + defaultSchedule_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 88: + { + supportsCustomSchedule_ = input.readBool(); + + break; + } // case 88 + case 98: + { + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), + extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + helpUrl_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: + { + authorizationType_ = input.readEnum(); + + break; + } // case 112 + case 120: + { + dataRefreshType_ = input.readEnum(); + + break; + } // case 120 + case 128: + { + defaultDataRefreshWindowDays_ = input.readInt32(); + + break; + } // case 128 + case 136: + { + manualRunsDisabled_ = input.readBool(); + + break; + } // case 136 + case 146: + { + input.readMessage( + getMinimumScheduleIntervalFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + 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) { @@ -1810,22 +2009,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1834,20 +2036,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1855,54 +2058,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Data source resource name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1910,18 +2120,20 @@ public Builder setNameBytes( private java.lang.Object dataSourceId_ = ""; /** + * + * *
      * Data source id.
      * 
* * string data_source_id = 2; + * * @return The dataSourceId. */ public java.lang.String getDataSourceId() { java.lang.Object ref = dataSourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; @@ -1930,20 +2142,21 @@ public java.lang.String getDataSourceId() { } } /** + * + * *
      * Data source id.
      * 
* * string data_source_id = 2; + * * @return The bytes for dataSourceId. */ - public com.google.protobuf.ByteString - getDataSourceIdBytes() { + public com.google.protobuf.ByteString getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -1951,54 +2164,61 @@ public java.lang.String getDataSourceId() { } } /** + * + * *
      * Data source id.
      * 
* * string data_source_id = 2; + * * @param value The dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceId( - java.lang.String value) { + public Builder setDataSourceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataSourceId_ = value; onChanged(); return this; } /** + * + * *
      * Data source id.
      * 
* * string data_source_id = 2; + * * @return This builder for chaining. */ public Builder clearDataSourceId() { - + dataSourceId_ = getDefaultInstance().getDataSourceId(); onChanged(); return this; } /** + * + * *
      * Data source id.
      * 
* * string data_source_id = 2; + * * @param value The bytes for dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceId_ = value; onChanged(); return this; @@ -2006,18 +2226,20 @@ public Builder setDataSourceIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User friendly data source name.
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2026,20 +2248,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User friendly data source name.
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2047,54 +2270,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User friendly data source name.
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * User friendly data source name.
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * User friendly data source name.
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2102,18 +2332,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User friendly data source description string.
      * 
* * string description = 4; + * * @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; @@ -2122,20 +2354,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User friendly data source description string.
      * 
* * string description = 4; + * * @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 { @@ -2143,54 +2376,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User friendly data source description string.
      * 
* * string description = 4; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User friendly data source description string.
      * 
* * string description = 4; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User friendly data source description string.
      * 
* * string description = 4; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2198,18 +2438,20 @@ public Builder setDescriptionBytes( private java.lang.Object clientId_ = ""; /** + * + * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; + * * @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; @@ -2218,20 +2460,21 @@ public java.lang.String getClientId() { } } /** + * + * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; + * * @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 { @@ -2239,67 +2482,78 @@ public java.lang.String getClientId() { } } /** + * + * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; + * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId( - java.lang.String value) { + public Builder setClientId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientId_ = value; onChanged(); return this; } /** + * + * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; + * * @return This builder for chaining. */ public Builder clearClientId() { - + clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** + * + * *
      * Data source client id which should be used to receive refresh token.
      * 
* * string client_id = 5; + * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList scopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureScopesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2307,13 +2561,15 @@ private void ensureScopesIsMutable() {
      * 
* * repeated string scopes = 6; + * * @return A list containing the scopes. */ - public com.google.protobuf.ProtocolStringList - getScopesList() { + public com.google.protobuf.ProtocolStringList getScopesList() { return scopes_.getUnmodifiableView(); } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2321,12 +2577,15 @@ private void ensureScopesIsMutable() {
      * 
* * repeated string scopes = 6; + * * @return The count of scopes. */ public int getScopesCount() { return scopes_.size(); } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2334,6 +2593,7 @@ public int getScopesCount() {
      * 
* * repeated string scopes = 6; + * * @param index The index of the element to return. * @return The scopes at the given index. */ @@ -2341,6 +2601,8 @@ public java.lang.String getScopes(int index) { return scopes_.get(index); } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2348,14 +2610,16 @@ public java.lang.String getScopes(int index) {
      * 
* * repeated string scopes = 6; + * * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ - public com.google.protobuf.ByteString - getScopesBytes(int index) { + public com.google.protobuf.ByteString getScopesBytes(int index) { return scopes_.getByteString(index); } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2363,21 +2627,23 @@ public java.lang.String getScopes(int index) {
      * 
* * repeated string scopes = 6; + * * @param index The index to set the value at. * @param value The scopes to set. * @return This builder for chaining. */ - public Builder setScopes( - int index, java.lang.String value) { + public Builder setScopes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopesIsMutable(); + throw new NullPointerException(); + } + ensureScopesIsMutable(); scopes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2385,20 +2651,22 @@ public Builder setScopes(
      * 
* * repeated string scopes = 6; + * * @param value The scopes to add. * @return This builder for chaining. */ - public Builder addScopes( - java.lang.String value) { + public Builder addScopes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopesIsMutable(); + throw new NullPointerException(); + } + ensureScopesIsMutable(); scopes_.add(value); onChanged(); return this; } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2406,18 +2674,19 @@ public Builder addScopes(
      * 
* * repeated string scopes = 6; + * * @param values The scopes to add. * @return This builder for chaining. */ - public Builder addAllScopes( - java.lang.Iterable values) { + public Builder addAllScopes(java.lang.Iterable values) { ensureScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); onChanged(); return this; } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2425,6 +2694,7 @@ public Builder addAllScopes(
      * 
* * repeated string scopes = 6; + * * @return This builder for chaining. */ public Builder clearScopes() { @@ -2434,6 +2704,8 @@ public Builder clearScopes() { return this; } /** + * + * *
      * Api auth scopes for which refresh token needs to be obtained. These are
      * scopes needed by a data source to prepare data and ingest them into
@@ -2441,15 +2713,15 @@ public Builder clearScopes() {
      * 
* * repeated string scopes = 6; + * * @param value The bytes of the scopes to add. * @return This builder for chaining. */ - public Builder addScopesBytes( - com.google.protobuf.ByteString value) { + public Builder addScopesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureScopesIsMutable(); scopes_.add(value); onChanged(); @@ -2458,145 +2730,194 @@ public Builder addScopesBytes( private int transferType_ = 0; /** + * + * *
      * Deprecated. This field has no effect.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The enum numeric value on the wire for transferType. */ - @java.lang.Override @java.lang.Deprecated public int getTransferTypeValue() { + @java.lang.Override + @java.lang.Deprecated + public int getTransferTypeValue() { return transferType_; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @param value The enum numeric value on the wire for transferType to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setTransferTypeValue(int value) { - + @java.lang.Deprecated + public Builder setTransferTypeValue(int value) { + transferType_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The transferType. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { + @java.lang.Deprecated + public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferType result = com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferType result = + com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED + : result; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @param value The transferType to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setTransferType(com.google.cloud.bigquery.datatransfer.v1.TransferType value) { + @java.lang.Deprecated + public Builder setTransferType(com.google.cloud.bigquery.datatransfer.v1.TransferType value) { if (value == null) { throw new NullPointerException(); } - + transferType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearTransferType() { - + @java.lang.Deprecated + public Builder clearTransferType() { + transferType_ = 0; onChanged(); return this; } - private boolean supportsMultipleTransfers_ ; + private boolean supportsMultipleTransfers_; /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return The supportsMultipleTransfers. */ @java.lang.Override - @java.lang.Deprecated public boolean getSupportsMultipleTransfers() { + @java.lang.Deprecated + public boolean getSupportsMultipleTransfers() { return supportsMultipleTransfers_; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @param value The supportsMultipleTransfers to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSupportsMultipleTransfers(boolean value) { - + @java.lang.Deprecated + public Builder setSupportsMultipleTransfers(boolean value) { + supportsMultipleTransfers_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSupportsMultipleTransfers() { - + @java.lang.Deprecated + public Builder clearSupportsMultipleTransfers() { + supportsMultipleTransfers_ = false; onChanged(); return this; } - private int updateDeadlineSeconds_ ; + private int updateDeadlineSeconds_; /** + * + * *
      * The number of seconds to wait for an update from the data source
      * before the Data Transfer Service marks the transfer as FAILED.
      * 
* * int32 update_deadline_seconds = 9; + * * @return The updateDeadlineSeconds. */ @java.lang.Override @@ -2604,32 +2925,38 @@ public int getUpdateDeadlineSeconds() { return updateDeadlineSeconds_; } /** + * + * *
      * The number of seconds to wait for an update from the data source
      * before the Data Transfer Service marks the transfer as FAILED.
      * 
* * int32 update_deadline_seconds = 9; + * * @param value The updateDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setUpdateDeadlineSeconds(int value) { - + updateDeadlineSeconds_ = value; onChanged(); return this; } /** + * + * *
      * The number of seconds to wait for an update from the data source
      * before the Data Transfer Service marks the transfer as FAILED.
      * 
* * int32 update_deadline_seconds = 9; + * * @return This builder for chaining. */ public Builder clearUpdateDeadlineSeconds() { - + updateDeadlineSeconds_ = 0; onChanged(); return this; @@ -2637,6 +2964,8 @@ public Builder clearUpdateDeadlineSeconds() { private java.lang.Object defaultSchedule_ = ""; /** + * + * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -2646,13 +2975,13 @@ public Builder clearUpdateDeadlineSeconds() {
      * 
* * string default_schedule = 10; + * * @return The defaultSchedule. */ public java.lang.String getDefaultSchedule() { java.lang.Object ref = defaultSchedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultSchedule_ = s; return s; @@ -2661,6 +2990,8 @@ public java.lang.String getDefaultSchedule() { } } /** + * + * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -2670,15 +3001,14 @@ public java.lang.String getDefaultSchedule() {
      * 
* * string default_schedule = 10; + * * @return The bytes for defaultSchedule. */ - public com.google.protobuf.ByteString - getDefaultScheduleBytes() { + public com.google.protobuf.ByteString getDefaultScheduleBytes() { java.lang.Object ref = defaultSchedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultSchedule_ = b; return b; } else { @@ -2686,6 +3016,8 @@ public java.lang.String getDefaultSchedule() { } } /** + * + * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -2695,20 +3027,22 @@ public java.lang.String getDefaultSchedule() {
      * 
* * string default_schedule = 10; + * * @param value The defaultSchedule to set. * @return This builder for chaining. */ - public Builder setDefaultSchedule( - java.lang.String value) { + public Builder setDefaultSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + defaultSchedule_ = value; onChanged(); return this; } /** + * + * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -2718,15 +3052,18 @@ public Builder setDefaultSchedule(
      * 
* * string default_schedule = 10; + * * @return This builder for chaining. */ public Builder clearDefaultSchedule() { - + defaultSchedule_ = getDefaultInstance().getDefaultSchedule(); onChanged(); return this; } /** + * + * *
      * Default data transfer schedule.
      * Examples of valid schedules include:
@@ -2736,23 +3073,25 @@ public Builder clearDefaultSchedule() {
      * 
* * string default_schedule = 10; + * * @param value The bytes for defaultSchedule to set. * @return This builder for chaining. */ - public Builder setDefaultScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setDefaultScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultSchedule_ = value; onChanged(); return this; } - private boolean supportsCustomSchedule_ ; + private boolean supportsCustomSchedule_; /** + * + * *
      * Specifies whether the data source supports a user defined schedule, or
      * operates on the default schedule.
@@ -2760,6 +3099,7 @@ public Builder setDefaultScheduleBytes(
      * 
* * bool supports_custom_schedule = 11; + * * @return The supportsCustomSchedule. */ @java.lang.Override @@ -2767,6 +3107,8 @@ public boolean getSupportsCustomSchedule() { return supportsCustomSchedule_; } /** + * + * *
      * Specifies whether the data source supports a user defined schedule, or
      * operates on the default schedule.
@@ -2774,16 +3116,19 @@ public boolean getSupportsCustomSchedule() {
      * 
* * bool supports_custom_schedule = 11; + * * @param value The supportsCustomSchedule to set. * @return This builder for chaining. */ public Builder setSupportsCustomSchedule(boolean value) { - + supportsCustomSchedule_ = value; onChanged(); return this; } /** + * + * *
      * Specifies whether the data source supports a user defined schedule, or
      * operates on the default schedule.
@@ -2791,35 +3136,46 @@ public Builder setSupportsCustomSchedule(boolean value) {
      * 
* * bool supports_custom_schedule = 11; + * * @return This builder for chaining. */ public Builder clearSupportsCustomSchedule() { - + supportsCustomSchedule_ = false; onChanged(); return this; } - private java.util.List parameters_ = - java.util.Collections.emptyList(); + private java.util.List + parameters_ = java.util.Collections.emptyList(); + private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - parameters_ = new java.util.ArrayList(parameters_); + parameters_ = + new java.util.ArrayList( + parameters_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> parametersBuilder_; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + parametersBuilder_; /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public java.util.List getParametersList() { + public java.util.List + getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { @@ -2827,11 +3183,14 @@ public java.util.List * Data source parameters. *
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public int getParametersCount() { if (parametersBuilder_ == null) { @@ -2841,11 +3200,14 @@ public int getParametersCount() { } } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParameters(int index) { if (parametersBuilder_ == null) { @@ -2855,11 +3217,14 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParamete } } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder setParameters( int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { @@ -2876,14 +3241,18 @@ public Builder setParameters( return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder setParameters( - int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); @@ -2894,13 +3263,17 @@ public Builder setParameters( return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public Builder addParameters(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { + public Builder addParameters( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2914,11 +3287,14 @@ public Builder addParameters(com.google.cloud.bigquery.datatransfer.v1.DataSourc return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder addParameters( int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter value) { @@ -2935,11 +3311,14 @@ public Builder addParameters( return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder addParameters( com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { @@ -2953,14 +3332,18 @@ public Builder addParameters( return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder addParameters( - int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); @@ -2971,18 +3354,21 @@ public Builder addParameters( return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder addAllParameters( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); @@ -2990,11 +3376,14 @@ public Builder addAllParameters( return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder clearParameters() { if (parametersBuilder_ == null) { @@ -3007,11 +3396,14 @@ public Builder clearParameters() { return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { @@ -3024,39 +3416,50 @@ public Builder removeParameters(int index) { return this; } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder getParametersBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder + getParametersBuilder(int index) { return getParametersFieldBuilder().getBuilder(index); } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParametersOrBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder + getParametersOrBuilder(int index) { if (parametersBuilder_ == null) { - return parameters_.get(index); } else { + return parameters_.get(index); + } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public java.util.List - getParametersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { @@ -3064,49 +3467,65 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder ge } } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addParametersBuilder() { - return getParametersFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder + addParametersBuilder() { + return getParametersFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder + addParametersBuilder(int index) { + return getParametersFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** + * + * *
      * Data source parameters.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - public java.util.List - getParametersBuilderList() { + public java.util.List + getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( - parameters_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -3114,18 +3533,20 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder add private java.lang.Object helpUrl_ = ""; /** + * + * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; + * * @return The helpUrl. */ public java.lang.String getHelpUrl() { java.lang.Object ref = helpUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); helpUrl_ = s; return s; @@ -3134,20 +3555,21 @@ public java.lang.String getHelpUrl() { } } /** + * + * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; + * * @return The bytes for helpUrl. */ - public com.google.protobuf.ByteString - getHelpUrlBytes() { + public com.google.protobuf.ByteString getHelpUrlBytes() { java.lang.Object ref = helpUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); helpUrl_ = b; return b; } else { @@ -3155,54 +3577,61 @@ public java.lang.String getHelpUrl() { } } /** + * + * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; + * * @param value The helpUrl to set. * @return This builder for chaining. */ - public Builder setHelpUrl( - java.lang.String value) { + public Builder setHelpUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + helpUrl_ = value; onChanged(); return this; } /** + * + * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; + * * @return This builder for chaining. */ public Builder clearHelpUrl() { - + helpUrl_ = getDefaultInstance().getHelpUrl(); onChanged(); return this; } /** + * + * *
      * Url for the help document for this data source.
      * 
* * string help_url = 13; + * * @param value The bytes for helpUrl to set. * @return This builder for chaining. */ - public Builder setHelpUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setHelpUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + helpUrl_ = value; onChanged(); return this; @@ -3210,73 +3639,105 @@ public Builder setHelpUrlBytes( private int authorizationType_ = 0; /** + * + * *
      * Indicates the type of authorization.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @return The enum numeric value on the wire for authorizationType. */ - @java.lang.Override public int getAuthorizationTypeValue() { + @java.lang.Override + public int getAuthorizationTypeValue() { return authorizationType_; } /** + * + * *
      * Indicates the type of authorization.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @param value The enum numeric value on the wire for authorizationType to set. * @return This builder for chaining. */ public Builder setAuthorizationTypeValue(int value) { - + authorizationType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the type of authorization.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @return The authorizationType. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType() { + public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType + getAuthorizationType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf(authorizationType_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = + com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf( + authorizationType_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of authorization.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @param value The authorizationType to set. * @return This builder for chaining. */ - public Builder setAuthorizationType(com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType value) { + public Builder setAuthorizationType( + com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType value) { if (value == null) { throw new NullPointerException(); } - + authorizationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the type of authorization.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @return This builder for chaining. */ public Builder clearAuthorizationType() { - + authorizationType_ = 0; onChanged(); return this; @@ -3284,6 +3745,8 @@ public Builder clearAuthorizationType() { private int dataRefreshType_ = 0; /** + * + * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3291,13 +3754,19 @@ public Builder clearAuthorizationType() {
      * so it's useful to refresh data automatically.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @return The enum numeric value on the wire for dataRefreshType. */ - @java.lang.Override public int getDataRefreshTypeValue() { + @java.lang.Override + public int getDataRefreshTypeValue() { return dataRefreshType_; } /** + * + * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3305,17 +3774,22 @@ public Builder clearAuthorizationType() {
      * so it's useful to refresh data automatically.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @param value The enum numeric value on the wire for dataRefreshType to set. * @return This builder for chaining. */ public Builder setDataRefreshTypeValue(int value) { - + dataRefreshType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3323,16 +3797,26 @@ public Builder setDataRefreshTypeValue(int value) {
      * so it's useful to refresh data automatically.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @return The dataRefreshType. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { + public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType + getDataRefreshType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf(dataRefreshType_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = + com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf( + dataRefreshType_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED + : result; } /** + * + * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3340,20 +3824,26 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getD
      * so it's useful to refresh data automatically.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @param value The dataRefreshType to set. * @return This builder for chaining. */ - public Builder setDataRefreshType(com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType value) { + public Builder setDataRefreshType( + com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType value) { if (value == null) { throw new NullPointerException(); } - + dataRefreshType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Specifies whether the data source supports automatic data refresh for the
      * past few days, and how it's supported.
@@ -3361,24 +3851,30 @@ public Builder setDataRefreshType(com.google.cloud.bigquery.datatransfer.v1.Data
      * so it's useful to refresh data automatically.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @return This builder for chaining. */ public Builder clearDataRefreshType() { - + dataRefreshType_ = 0; onChanged(); return this; } - private int defaultDataRefreshWindowDays_ ; + private int defaultDataRefreshWindowDays_; /** + * + * *
      * Default data refresh window on days.
      * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
      * 
* * int32 default_data_refresh_window_days = 16; + * * @return The defaultDataRefreshWindowDays. */ @java.lang.Override @@ -3386,45 +3882,54 @@ public int getDefaultDataRefreshWindowDays() { return defaultDataRefreshWindowDays_; } /** + * + * *
      * Default data refresh window on days.
      * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
      * 
* * int32 default_data_refresh_window_days = 16; + * * @param value The defaultDataRefreshWindowDays to set. * @return This builder for chaining. */ public Builder setDefaultDataRefreshWindowDays(int value) { - + defaultDataRefreshWindowDays_ = value; onChanged(); return this; } /** + * + * *
      * Default data refresh window on days.
      * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
      * 
* * int32 default_data_refresh_window_days = 16; + * * @return This builder for chaining. */ public Builder clearDefaultDataRefreshWindowDays() { - + defaultDataRefreshWindowDays_ = 0; onChanged(); return this; } - private boolean manualRunsDisabled_ ; + private boolean manualRunsDisabled_; /** + * + * *
      * Disables backfilling and manual run scheduling
      * for the data source.
      * 
* * bool manual_runs_disabled = 17; + * * @return The manualRunsDisabled. */ @java.lang.Override @@ -3432,32 +3937,38 @@ public boolean getManualRunsDisabled() { return manualRunsDisabled_; } /** + * + * *
      * Disables backfilling and manual run scheduling
      * for the data source.
      * 
* * bool manual_runs_disabled = 17; + * * @param value The manualRunsDisabled to set. * @return This builder for chaining. */ public Builder setManualRunsDisabled(boolean value) { - + manualRunsDisabled_ = value; onChanged(); return this; } /** + * + * *
      * Disables backfilling and manual run scheduling
      * for the data source.
      * 
* * bool manual_runs_disabled = 17; + * * @return This builder for chaining. */ public Builder clearManualRunsDisabled() { - + manualRunsDisabled_ = false; onChanged(); return this; @@ -3465,34 +3976,47 @@ public Builder clearManualRunsDisabled() { private com.google.protobuf.Duration minimumScheduleInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minimumScheduleIntervalBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minimumScheduleIntervalBuilder_; /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; + * * @return Whether the minimumScheduleInterval field is set. */ public boolean hasMinimumScheduleInterval() { return minimumScheduleIntervalBuilder_ != null || minimumScheduleInterval_ != null; } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; + * * @return The minimumScheduleInterval. */ public com.google.protobuf.Duration getMinimumScheduleInterval() { if (minimumScheduleIntervalBuilder_ == null) { - return minimumScheduleInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumScheduleInterval_; + return minimumScheduleInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumScheduleInterval_; } else { return minimumScheduleIntervalBuilder_.getMessage(); } } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -3513,6 +4037,8 @@ public Builder setMinimumScheduleInterval(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -3531,6 +4057,8 @@ public Builder setMinimumScheduleInterval( return this; } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -3541,7 +4069,9 @@ public Builder mergeMinimumScheduleInterval(com.google.protobuf.Duration value) if (minimumScheduleIntervalBuilder_ == null) { if (minimumScheduleInterval_ != null) { minimumScheduleInterval_ = - com.google.protobuf.Duration.newBuilder(minimumScheduleInterval_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(minimumScheduleInterval_) + .mergeFrom(value) + .buildPartial(); } else { minimumScheduleInterval_ = value; } @@ -3553,6 +4083,8 @@ public Builder mergeMinimumScheduleInterval(com.google.protobuf.Duration value) return this; } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -3571,6 +4103,8 @@ public Builder clearMinimumScheduleInterval() { return this; } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -3578,11 +4112,13 @@ public Builder clearMinimumScheduleInterval() { * .google.protobuf.Duration minimum_schedule_interval = 18; */ public com.google.protobuf.Duration.Builder getMinimumScheduleIntervalBuilder() { - + onChanged(); return getMinimumScheduleIntervalFieldBuilder().getBuilder(); } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -3593,11 +4129,14 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder if (minimumScheduleIntervalBuilder_ != null) { return minimumScheduleIntervalBuilder_.getMessageOrBuilder(); } else { - return minimumScheduleInterval_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minimumScheduleInterval_; + return minimumScheduleInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumScheduleInterval_; } } /** + * + * *
      * The minimum interval for scheduler to schedule runs.
      * 
@@ -3605,21 +4144,24 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder * .google.protobuf.Duration minimum_schedule_interval = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinimumScheduleIntervalFieldBuilder() { if (minimumScheduleIntervalBuilder_ == null) { - minimumScheduleIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinimumScheduleInterval(), - getParentForChildren(), - isClean()); + minimumScheduleIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinimumScheduleInterval(), getParentForChildren(), isClean()); minimumScheduleInterval_ = null; } return minimumScheduleIntervalBuilder_; } + @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); } @@ -3629,12 +4171,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DataSource) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSource) private static final com.google.cloud.bigquery.datatransfer.v1.DataSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DataSource(); } @@ -3643,27 +4185,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSource getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSource 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 DataSource 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; @@ -3678,6 +4220,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.DataSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java similarity index 76% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java index 15eb9124d926..f5cdadaf8ed7 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java @@ -1,113 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface DataSourceOrBuilder extends +public interface DataSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DataSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Data source resource name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Data source id.
    * 
* * string data_source_id = 2; + * * @return The dataSourceId. */ java.lang.String getDataSourceId(); /** + * + * *
    * Data source id.
    * 
* * string data_source_id = 2; + * * @return The bytes for dataSourceId. */ - com.google.protobuf.ByteString - getDataSourceIdBytes(); + com.google.protobuf.ByteString getDataSourceIdBytes(); /** + * + * *
    * User friendly data source name.
    * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User friendly data source name.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * User friendly data source description string.
    * 
* * string description = 4; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User friendly data source description string.
    * 
* * string description = 4; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; + * * @return The clientId. */ java.lang.String getClientId(); /** + * + * *
    * Data source client id which should be used to receive refresh token.
    * 
* * string client_id = 5; + * * @return The bytes for clientId. */ - com.google.protobuf.ByteString - getClientIdBytes(); + com.google.protobuf.ByteString getClientIdBytes(); /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -115,11 +158,13 @@ public interface DataSourceOrBuilder extends
    * 
* * repeated string scopes = 6; + * * @return A list containing the scopes. */ - java.util.List - getScopesList(); + java.util.List getScopesList(); /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -127,10 +172,13 @@ public interface DataSourceOrBuilder extends
    * 
* * repeated string scopes = 6; + * * @return The count of scopes. */ int getScopesCount(); /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -138,11 +186,14 @@ public interface DataSourceOrBuilder extends
    * 
* * repeated string scopes = 6; + * * @param index The index of the element to return. * @return The scopes at the given index. */ java.lang.String getScopes(int index); /** + * + * *
    * Api auth scopes for which refresh token needs to be obtained. These are
    * scopes needed by a data source to prepare data and ingest them into
@@ -150,59 +201,80 @@ public interface DataSourceOrBuilder extends
    * 
* * repeated string scopes = 6; + * * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ - com.google.protobuf.ByteString - getScopesBytes(int index); + com.google.protobuf.ByteString getScopesBytes(int index); /** + * + * *
    * Deprecated. This field has no effect.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The enum numeric value on the wire for transferType. */ - @java.lang.Deprecated int getTransferTypeValue(); + @java.lang.Deprecated + int getTransferTypeValue(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 + * + * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=377 * @return The transferType. */ - @java.lang.Deprecated com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType(); + @java.lang.Deprecated + com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * bool supports_multiple_transfers = 8 [deprecated = true]; - * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. - * See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 + * + * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380 * @return The supportsMultipleTransfers. */ - @java.lang.Deprecated boolean getSupportsMultipleTransfers(); + @java.lang.Deprecated + boolean getSupportsMultipleTransfers(); /** + * + * *
    * The number of seconds to wait for an update from the data source
    * before the Data Transfer Service marks the transfer as FAILED.
    * 
* * int32 update_deadline_seconds = 9; + * * @return The updateDeadlineSeconds. */ int getUpdateDeadlineSeconds(); /** + * + * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -212,10 +284,13 @@ public interface DataSourceOrBuilder extends
    * 
* * string default_schedule = 10; + * * @return The defaultSchedule. */ java.lang.String getDefaultSchedule(); /** + * + * *
    * Default data transfer schedule.
    * Examples of valid schedules include:
@@ -225,12 +300,14 @@ public interface DataSourceOrBuilder extends
    * 
* * string default_schedule = 10; + * * @return The bytes for defaultSchedule. */ - com.google.protobuf.ByteString - getDefaultScheduleBytes(); + com.google.protobuf.ByteString getDefaultScheduleBytes(); /** + * + * *
    * Specifies whether the data source supports a user defined schedule, or
    * operates on the default schedule.
@@ -238,94 +315,126 @@ public interface DataSourceOrBuilder extends
    * 
* * bool supports_custom_schedule = 11; + * * @return The supportsCustomSchedule. */ boolean getSupportsCustomSchedule(); /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - java.util.List - getParametersList(); + java.util.List getParametersList(); /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getParameters(int index); /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ int getParametersCount(); /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ - java.util.List + java.util.List getParametersOrBuilderList(); /** + * + * *
    * Data source parameters.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12; + * */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParametersOrBuilder( int index); /** + * + * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; + * * @return The helpUrl. */ java.lang.String getHelpUrl(); /** + * + * *
    * Url for the help document for this data source.
    * 
* * string help_url = 13; + * * @return The bytes for helpUrl. */ - com.google.protobuf.ByteString - getHelpUrlBytes(); + com.google.protobuf.ByteString getHelpUrlBytes(); /** + * + * *
    * Indicates the type of authorization.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @return The enum numeric value on the wire for authorizationType. */ int getAuthorizationTypeValue(); /** + * + * *
    * Indicates the type of authorization.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14; + * + * * @return The authorizationType. */ com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType(); /** + * + * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -333,11 +442,15 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParame
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @return The enum numeric value on the wire for dataRefreshType. */ int getDataRefreshTypeValue(); /** + * + * *
    * Specifies whether the data source supports automatic data refresh for the
    * past few days, and how it's supported.
@@ -345,52 +458,68 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getParame
    * so it's useful to refresh data automatically.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15; + * + * * @return The dataRefreshType. */ com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType(); /** + * + * *
    * Default data refresh window on days.
    * Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
    * 
* * int32 default_data_refresh_window_days = 16; + * * @return The defaultDataRefreshWindowDays. */ int getDefaultDataRefreshWindowDays(); /** + * + * *
    * Disables backfilling and manual run scheduling
    * for the data source.
    * 
* * bool manual_runs_disabled = 17; + * * @return The manualRunsDisabled. */ boolean getManualRunsDisabled(); /** + * + * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; + * * @return Whether the minimumScheduleInterval field is set. */ boolean hasMinimumScheduleInterval(); /** + * + * *
    * The minimum interval for scheduler to schedule runs.
    * 
* * .google.protobuf.Duration minimum_schedule_interval = 18; + * * @return The minimumScheduleInterval. */ com.google.protobuf.Duration getMinimumScheduleInterval(); /** + * + * *
    * The minimum interval for scheduler to schedule runs.
    * 
diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java similarity index 75% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java index 621ce6af170f..3dab17dfed6a 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A parameter used to define custom fields in a data source definition.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSourceParameter} */ -public final class DataSourceParameter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DataSourceParameter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) DataSourceParameterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataSourceParameter.newBuilder() to construct. private DataSourceParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DataSourceParameter() { paramId_ = ""; displayName_ = ""; @@ -33,39 +51,43 @@ private DataSourceParameter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataSourceParameter(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); } /** + * + * *
    * Parameter type.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Type unspecified.
      * 
@@ -74,6 +96,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * String parameter.
      * 
@@ -82,6 +106,8 @@ public enum Type */ STRING(1), /** + * + * *
      * Integer parameter (64-bits).
      * Will be serialized to json as string.
@@ -91,6 +117,8 @@ public enum Type
      */
     INTEGER(2),
     /**
+     *
+     *
      * 
      * Double precision floating point parameter.
      * 
@@ -99,6 +127,8 @@ public enum Type */ DOUBLE(3), /** + * + * *
      * Boolean parameter.
      * 
@@ -107,6 +137,8 @@ public enum Type */ BOOLEAN(4), /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -115,6 +147,8 @@ public enum Type */ RECORD(5), /** + * + * *
      * Page ID for a Google+ Page.
      * 
@@ -126,6 +160,8 @@ public enum Type ; /** + * + * *
      * Type unspecified.
      * 
@@ -134,6 +170,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * String parameter.
      * 
@@ -142,6 +180,8 @@ public enum Type */ public static final int STRING_VALUE = 1; /** + * + * *
      * Integer parameter (64-bits).
      * Will be serialized to json as string.
@@ -151,6 +191,8 @@ public enum Type
      */
     public static final int INTEGER_VALUE = 2;
     /**
+     *
+     *
      * 
      * Double precision floating point parameter.
      * 
@@ -159,6 +201,8 @@ public enum Type */ public static final int DOUBLE_VALUE = 3; /** + * + * *
      * Boolean parameter.
      * 
@@ -167,6 +211,8 @@ public enum Type */ public static final int BOOLEAN_VALUE = 4; /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -175,6 +221,8 @@ public enum Type */ public static final int RECORD_VALUE = 5; /** + * + * *
      * Page ID for a Google+ Page.
      * 
@@ -183,7 +231,6 @@ public enum Type */ public static final int PLUS_PAGE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -208,53 +255,59 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return STRING; - case 2: return INTEGER; - case 3: return DOUBLE; - case 4: return BOOLEAN; - case 5: return RECORD; - case 6: return PLUS_PAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return STRING; + case 2: + return INTEGER; + case 3: + return DOUBLE; + case 4: + return BOOLEAN; + case 5: + return RECORD; + case 6: + return PLUS_PAGE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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 Type findValueByNumber(int number) { + return Type.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.datatransfer.v1.DataSourceParameter.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -274,11 +327,14 @@ private Type(int value) { public static final int PARAM_ID_FIELD_NUMBER = 1; private volatile java.lang.Object paramId_; /** + * + * *
    * Parameter identifier.
    * 
* * string param_id = 1; + * * @return The paramId. */ @java.lang.Override @@ -287,29 +343,29 @@ public java.lang.String getParamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paramId_ = s; return s; } } /** + * + * *
    * Parameter identifier.
    * 
* * string param_id = 1; + * * @return The bytes for paramId. */ @java.lang.Override - public com.google.protobuf.ByteString - getParamIdBytes() { + public com.google.protobuf.ByteString getParamIdBytes() { java.lang.Object ref = paramId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); paramId_ = b; return b; } else { @@ -320,11 +376,14 @@ public java.lang.String getParamId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -333,29 +392,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -366,11 +425,14 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Parameter description.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -379,29 +441,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; } } /** + * + * *
    * Parameter 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 { @@ -412,38 +474,52 @@ public java.lang.String getDescription() { public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** + * + * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED + : result; } public static final int REQUIRED_FIELD_NUMBER = 5; private boolean required_; /** + * + * *
    * Is parameter required.
    * 
* * bool required = 5; + * * @return The required. */ @java.lang.Override @@ -454,11 +530,14 @@ public boolean getRequired() { public static final int REPEATED_FIELD_NUMBER = 6; private boolean repeated_; /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * bool repeated = 6; + * * @return The repeated. */ @java.lang.Override @@ -469,11 +548,14 @@ public boolean getRepeated() { public static final int VALIDATION_REGEX_FIELD_NUMBER = 7; private volatile java.lang.Object validationRegex_; /** + * + * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; + * * @return The validationRegex. */ @java.lang.Override @@ -482,29 +564,29 @@ public java.lang.String getValidationRegex() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationRegex_ = s; return s; } } /** + * + * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; + * * @return The bytes for validationRegex. */ @java.lang.Override - public com.google.protobuf.ByteString - getValidationRegexBytes() { + public com.google.protobuf.ByteString getValidationRegexBytes() { java.lang.Object ref = validationRegex_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); validationRegex_ = b; return b; } else { @@ -515,34 +597,42 @@ public java.lang.String getValidationRegex() { public static final int ALLOWED_VALUES_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList allowedValues_; /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @return A list containing the allowedValues. */ - public com.google.protobuf.ProtocolStringList - getAllowedValuesList() { + public com.google.protobuf.ProtocolStringList getAllowedValuesList() { return allowedValues_; } /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @return The count of allowedValues. */ public int getAllowedValuesCount() { return allowedValues_.size(); } /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @param index The index of the element to return. * @return The allowedValues at the given index. */ @@ -550,27 +640,32 @@ public java.lang.String getAllowedValues(int index) { return allowedValues_.get(index); } /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @param index The index of the value to return. * @return The bytes of the allowedValues at the given index. */ - public com.google.protobuf.ByteString - getAllowedValuesBytes(int index) { + public com.google.protobuf.ByteString getAllowedValuesBytes(int index) { return allowedValues_.getByteString(index); } public static final int MIN_VALUE_FIELD_NUMBER = 9; private com.google.protobuf.DoubleValue minValue_; /** + * + * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; + * * @return Whether the minValue field is set. */ @java.lang.Override @@ -578,11 +673,14 @@ public boolean hasMinValue() { return minValue_ != null; } /** + * + * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; + * * @return The minValue. */ @java.lang.Override @@ -590,6 +688,8 @@ public com.google.protobuf.DoubleValue getMinValue() { return minValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_; } /** + * + * *
    * For integer and double values specifies minimum allowed value.
    * 
@@ -604,11 +704,14 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { public static final int MAX_VALUE_FIELD_NUMBER = 10; private com.google.protobuf.DoubleValue maxValue_; /** + * + * *
    * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; + * * @return Whether the maxValue field is set. */ @java.lang.Override @@ -616,11 +719,14 @@ public boolean hasMaxValue() { return maxValue_ != null; } /** + * + * *
    * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; + * * @return The maxValue. */ @java.lang.Override @@ -628,6 +734,8 @@ public com.google.protobuf.DoubleValue getMaxValue() { return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; } /** + * + * *
    * For integer and double values specifies maximum allowed value.
    * 
@@ -642,6 +750,8 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { public static final int FIELDS_FIELD_NUMBER = 11; private java.util.List fields_; /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -649,10 +759,13 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ @java.lang.Override - public java.util.List getFieldsList() { + public java.util.List + getFieldsList() { return fields_; } /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -660,11 +773,14 @@ public java.util.Listrepeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> getFieldsOrBuilderList() { return fields_; } /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -676,6 +792,8 @@ public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -687,6 +805,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getFields(i return fields_.get(index); } /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -702,12 +822,15 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder ge public static final int VALIDATION_DESCRIPTION_FIELD_NUMBER = 12; private volatile java.lang.Object validationDescription_; /** + * + * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; + * * @return The validationDescription. */ @java.lang.Override @@ -716,30 +839,30 @@ public java.lang.String getValidationDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationDescription_ = s; return s; } } /** + * + * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; + * * @return The bytes for validationDescription. */ @java.lang.Override - public com.google.protobuf.ByteString - getValidationDescriptionBytes() { + public com.google.protobuf.ByteString getValidationDescriptionBytes() { java.lang.Object ref = validationDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); validationDescription_ = b; return b; } else { @@ -750,11 +873,14 @@ public java.lang.String getValidationDescription() { public static final int VALIDATION_HELP_URL_FIELD_NUMBER = 13; private volatile java.lang.Object validationHelpUrl_; /** + * + * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; + * * @return The validationHelpUrl. */ @java.lang.Override @@ -763,29 +889,29 @@ public java.lang.String getValidationHelpUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationHelpUrl_ = s; return s; } } /** + * + * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; + * * @return The bytes for validationHelpUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getValidationHelpUrlBytes() { + public com.google.protobuf.ByteString getValidationHelpUrlBytes() { java.lang.Object ref = validationHelpUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); validationHelpUrl_ = b; return b; } else { @@ -796,11 +922,14 @@ public java.lang.String getValidationHelpUrl() { public static final int IMMUTABLE_FIELD_NUMBER = 14; private boolean immutable_; /** + * + * *
    * Cannot be changed after initial creation.
    * 
* * bool immutable = 14; + * * @return The immutable. */ @java.lang.Override @@ -811,11 +940,14 @@ public boolean getImmutable() { public static final int RECURSE_FIELD_NUMBER = 15; private boolean recurse_; /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * bool recurse = 15; + * * @return The recurse. */ @java.lang.Override @@ -826,12 +958,15 @@ public boolean getRecurse() { public static final int DEPRECATED_FIELD_NUMBER = 20; private boolean deprecated_; /** + * + * *
    * If true, it should not be used in new transfers, and it should not be
    * visible to users.
    * 
* * bool deprecated = 20; + * * @return The deprecated. */ @java.lang.Override @@ -840,6 +975,7 @@ public boolean getDeprecated() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -851,8 +987,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(paramId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paramId_); } @@ -862,7 +997,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } - if (type_ != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, type_); } if (required_ != false) { @@ -919,17 +1056,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - if (type_ != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, type_); + if (type_ + != com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, type_); } if (required_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, required_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, required_); } if (repeated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, repeated_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, repeated_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationRegex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, validationRegex_); @@ -943,16 +1079,13 @@ public int getSerializedSize() { size += 1 * getAllowedValuesList().size(); } if (minValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getMinValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMinValue()); } if (maxValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getMaxValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMaxValue()); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, validationDescription_); @@ -961,16 +1094,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, validationHelpUrl_); } if (immutable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, immutable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, immutable_); } if (recurse_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, recurse_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, recurse_); } if (deprecated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, deprecated_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, deprecated_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -980,50 +1110,36 @@ 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.datatransfer.v1.DataSourceParameter)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter other = (com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter) obj; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter other = + (com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter) obj; - if (!getParamId() - .equals(other.getParamId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getParamId().equals(other.getParamId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (type_ != other.type_) return false; - if (getRequired() - != other.getRequired()) return false; - if (getRepeated() - != other.getRepeated()) return false; - if (!getValidationRegex() - .equals(other.getValidationRegex())) return false; - if (!getAllowedValuesList() - .equals(other.getAllowedValuesList())) return false; + if (getRequired() != other.getRequired()) return false; + if (getRepeated() != other.getRepeated()) return false; + if (!getValidationRegex().equals(other.getValidationRegex())) return false; + if (!getAllowedValuesList().equals(other.getAllowedValuesList())) return false; if (hasMinValue() != other.hasMinValue()) return false; if (hasMinValue()) { - if (!getMinValue() - .equals(other.getMinValue())) return false; + if (!getMinValue().equals(other.getMinValue())) return false; } if (hasMaxValue() != other.hasMaxValue()) return false; if (hasMaxValue()) { - if (!getMaxValue() - .equals(other.getMaxValue())) return false; - } - if (!getFieldsList() - .equals(other.getFieldsList())) return false; - if (!getValidationDescription() - .equals(other.getValidationDescription())) return false; - if (!getValidationHelpUrl() - .equals(other.getValidationHelpUrl())) return false; - if (getImmutable() - != other.getImmutable()) return false; - if (getRecurse() - != other.getRecurse()) return false; - if (getDeprecated() - != other.getDeprecated()) return false; + if (!getMaxValue().equals(other.getMaxValue())) return false; + } + if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getValidationDescription().equals(other.getValidationDescription())) return false; + if (!getValidationHelpUrl().equals(other.getValidationHelpUrl())) return false; + if (getImmutable() != other.getImmutable()) return false; + if (getRecurse() != other.getRecurse()) return false; + if (getDeprecated() != other.getDeprecated()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1044,11 +1160,9 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); hash = (37 * hash) + REPEATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRepeated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRepeated()); hash = (37 * hash) + VALIDATION_REGEX_FIELD_NUMBER; hash = (53 * hash) + getValidationRegex().hashCode(); if (getAllowedValuesCount() > 0) { @@ -1072,143 +1186,147 @@ public int hashCode() { hash = (37 * hash) + VALIDATION_HELP_URL_FIELD_NUMBER; hash = (53 * hash) + getValidationHelpUrl().hashCode(); hash = (37 * hash) + IMMUTABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getImmutable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImmutable()); hash = (37 * hash) + RECURSE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRecurse()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecurse()); hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeprecated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeprecated()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter 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.datatransfer.v1.DataSourceParameter prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter 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; } /** + * + * *
    * A parameter used to define custom fields in a data source definition.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSourceParameter} */ - 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.datatransfer.v1.DataSourceParameter) com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.class, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.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(); @@ -1261,13 +1379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance(); } @@ -1282,7 +1401,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter result = new com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter(this); + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter result = + new com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter(this); int from_bitField0_ = bitField0_; result.paramId_ = paramId_; result.displayName_ = displayName_; @@ -1328,38 +1448,39 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter buildPartia 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.datatransfer.v1.DataSourceParameter) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter) other); } else { super.mergeFrom(other); return this; @@ -1367,7 +1488,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()) + return this; if (!other.getParamId().isEmpty()) { paramId_ = other.paramId_; onChanged(); @@ -1427,9 +1550,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSourcePar fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -1478,105 +1602,118 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - paramId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - type_ = input.readEnum(); - - break; - } // case 32 - case 40: { - required_ = input.readBool(); - - break; - } // case 40 - case 48: { - repeated_ = input.readBool(); - - break; - } // case 48 - case 58: { - validationRegex_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedValuesIsMutable(); - allowedValues_.add(s); - break; - } // case 66 - case 74: { - input.readMessage( - getMinValueFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - case 82: { - input.readMessage( - getMaxValueFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 90: { - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: { - validationDescription_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: { - validationHelpUrl_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: { - immutable_ = input.readBool(); - - break; - } // case 112 - case 120: { - recurse_ = input.readBool(); - - break; - } // case 120 - case 160: { - deprecated_ = input.readBool(); - - break; - } // case 160 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + paramId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + type_ = input.readEnum(); + + break; + } // case 32 + case 40: + { + required_ = input.readBool(); + + break; + } // case 40 + case 48: + { + repeated_ = input.readBool(); + + break; + } // case 48 + case 58: + { + validationRegex_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedValuesIsMutable(); + allowedValues_.add(s); + break; + } // case 66 + case 74: + { + input.readMessage(getMinValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getMaxValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + validationDescription_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + validationHelpUrl_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: + { + immutable_ = input.readBool(); + + break; + } // case 112 + case 120: + { + recurse_ = input.readBool(); + + break; + } // case 120 + case 160: + { + deprecated_ = input.readBool(); + + break; + } // case 160 + 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) { @@ -1586,22 +1723,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object paramId_ = ""; /** + * + * *
      * Parameter identifier.
      * 
* * string param_id = 1; + * * @return The paramId. */ public java.lang.String getParamId() { java.lang.Object ref = paramId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paramId_ = s; return s; @@ -1610,20 +1750,21 @@ public java.lang.String getParamId() { } } /** + * + * *
      * Parameter identifier.
      * 
* * string param_id = 1; + * * @return The bytes for paramId. */ - public com.google.protobuf.ByteString - getParamIdBytes() { + public com.google.protobuf.ByteString getParamIdBytes() { java.lang.Object ref = paramId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); paramId_ = b; return b; } else { @@ -1631,54 +1772,61 @@ public java.lang.String getParamId() { } } /** + * + * *
      * Parameter identifier.
      * 
* * string param_id = 1; + * * @param value The paramId to set. * @return This builder for chaining. */ - public Builder setParamId( - java.lang.String value) { + public Builder setParamId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + paramId_ = value; onChanged(); return this; } /** + * + * *
      * Parameter identifier.
      * 
* * string param_id = 1; + * * @return This builder for chaining. */ public Builder clearParamId() { - + paramId_ = getDefaultInstance().getParamId(); onChanged(); return this; } /** + * + * *
      * Parameter identifier.
      * 
* * string param_id = 1; + * * @param value The bytes for paramId to set. * @return This builder for chaining. */ - public Builder setParamIdBytes( - com.google.protobuf.ByteString value) { + public Builder setParamIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + paramId_ = value; onChanged(); return this; @@ -1686,18 +1834,20 @@ public Builder setParamIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1706,20 +1856,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1727,54 +1878,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Parameter display name in the user interface.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1782,18 +1940,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Parameter 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; @@ -1802,20 +1962,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Parameter 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 { @@ -1823,54 +1984,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Parameter description.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Parameter description.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Parameter description.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1878,85 +2046,108 @@ public Builder setDescriptionBytes( private int type_ = 0; /** + * + * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type value) { + public Builder setType( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Parameter type.
      * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean required_ ; + private boolean required_; /** + * + * *
      * Is parameter required.
      * 
* * bool required = 5; + * * @return The required. */ @java.lang.Override @@ -1964,42 +2155,51 @@ public boolean getRequired() { return required_; } /** + * + * *
      * Is parameter required.
      * 
* * bool required = 5; + * * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { - + required_ = value; onChanged(); return this; } /** + * + * *
      * Is parameter required.
      * 
* * bool required = 5; + * * @return This builder for chaining. */ public Builder clearRequired() { - + required_ = false; onChanged(); return this; } - private boolean repeated_ ; + private boolean repeated_; /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool repeated = 6; + * * @return The repeated. */ @java.lang.Override @@ -2007,30 +2207,36 @@ public boolean getRepeated() { return repeated_; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool repeated = 6; + * * @param value The repeated to set. * @return This builder for chaining. */ public Builder setRepeated(boolean value) { - + repeated_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool repeated = 6; + * * @return This builder for chaining. */ public Builder clearRepeated() { - + repeated_ = false; onChanged(); return this; @@ -2038,18 +2244,20 @@ public Builder clearRepeated() { private java.lang.Object validationRegex_ = ""; /** + * + * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; + * * @return The validationRegex. */ public java.lang.String getValidationRegex() { java.lang.Object ref = validationRegex_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationRegex_ = s; return s; @@ -2058,20 +2266,21 @@ public java.lang.String getValidationRegex() { } } /** + * + * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; + * * @return The bytes for validationRegex. */ - public com.google.protobuf.ByteString - getValidationRegexBytes() { + public com.google.protobuf.ByteString getValidationRegexBytes() { java.lang.Object ref = validationRegex_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); validationRegex_ = b; return b; } else { @@ -2079,95 +2288,112 @@ public java.lang.String getValidationRegex() { } } /** + * + * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; + * * @param value The validationRegex to set. * @return This builder for chaining. */ - public Builder setValidationRegex( - java.lang.String value) { + public Builder setValidationRegex(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + validationRegex_ = value; onChanged(); return this; } /** + * + * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; + * * @return This builder for chaining. */ public Builder clearValidationRegex() { - + validationRegex_ = getDefaultInstance().getValidationRegex(); onChanged(); return this; } /** + * + * *
      * Regular expression which can be used for parameter validation.
      * 
* * string validation_regex = 7; + * * @param value The bytes for validationRegex to set. * @return This builder for chaining. */ - public Builder setValidationRegexBytes( - com.google.protobuf.ByteString value) { + public Builder setValidationRegexBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationRegex_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedValues_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { allowedValues_ = new com.google.protobuf.LazyStringArrayList(allowedValues_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @return A list containing the allowedValues. */ - public com.google.protobuf.ProtocolStringList - getAllowedValuesList() { + public com.google.protobuf.ProtocolStringList getAllowedValuesList() { return allowedValues_.getUnmodifiableView(); } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @return The count of allowedValues. */ public int getAllowedValuesCount() { return allowedValues_.size(); } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @param index The index of the element to return. * @return The allowedValues at the given index. */ @@ -2175,80 +2401,90 @@ public java.lang.String getAllowedValues(int index) { return allowedValues_.get(index); } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @param index The index of the value to return. * @return The bytes of the allowedValues at the given index. */ - public com.google.protobuf.ByteString - getAllowedValuesBytes(int index) { + public com.google.protobuf.ByteString getAllowedValuesBytes(int index) { return allowedValues_.getByteString(index); } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @param index The index to set the value at. * @param value The allowedValues to set. * @return This builder for chaining. */ - public Builder setAllowedValues( - int index, java.lang.String value) { + public Builder setAllowedValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedValuesIsMutable(); allowedValues_.set(index, value); onChanged(); return this; } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @param value The allowedValues to add. * @return This builder for chaining. */ - public Builder addAllowedValues( - java.lang.String value) { + public Builder addAllowedValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedValuesIsMutable(); allowedValues_.add(value); onChanged(); return this; } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @param values The allowedValues to add. * @return This builder for chaining. */ - public Builder addAllAllowedValues( - java.lang.Iterable values) { + public Builder addAllAllowedValues(java.lang.Iterable values) { ensureAllowedValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedValues_); onChanged(); return this; } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @return This builder for chaining. */ public Builder clearAllowedValues() { @@ -2258,20 +2494,22 @@ public Builder clearAllowedValues() { return this; } /** + * + * *
      * All possible values for the parameter.
      * 
* * repeated string allowed_values = 8; + * * @param value The bytes of the allowedValues to add. * @return This builder for chaining. */ - public Builder addAllowedValuesBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedValuesIsMutable(); allowedValues_.add(value); onChanged(); @@ -2280,24 +2518,33 @@ public Builder addAllowedValuesBytes( private com.google.protobuf.DoubleValue minValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> minValueBuilder_; + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + minValueBuilder_; /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
* * .google.protobuf.DoubleValue min_value = 9; + * * @return Whether the minValue field is set. */ public boolean hasMinValue() { return minValueBuilder_ != null || minValue_ != null; } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
* * .google.protobuf.DoubleValue min_value = 9; + * * @return The minValue. */ public com.google.protobuf.DoubleValue getMinValue() { @@ -2308,6 +2555,8 @@ public com.google.protobuf.DoubleValue getMinValue() { } } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2328,14 +2577,15 @@ public Builder setMinValue(com.google.protobuf.DoubleValue value) { return this; } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
* * .google.protobuf.DoubleValue min_value = 9; */ - public Builder setMinValue( - com.google.protobuf.DoubleValue.Builder builderForValue) { + public Builder setMinValue(com.google.protobuf.DoubleValue.Builder builderForValue) { if (minValueBuilder_ == null) { minValue_ = builderForValue.build(); onChanged(); @@ -2346,6 +2596,8 @@ public Builder setMinValue( return this; } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2356,7 +2608,7 @@ public Builder mergeMinValue(com.google.protobuf.DoubleValue value) { if (minValueBuilder_ == null) { if (minValue_ != null) { minValue_ = - com.google.protobuf.DoubleValue.newBuilder(minValue_).mergeFrom(value).buildPartial(); + com.google.protobuf.DoubleValue.newBuilder(minValue_).mergeFrom(value).buildPartial(); } else { minValue_ = value; } @@ -2368,6 +2620,8 @@ public Builder mergeMinValue(com.google.protobuf.DoubleValue value) { return this; } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2386,6 +2640,8 @@ public Builder clearMinValue() { return this; } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2393,11 +2649,13 @@ public Builder clearMinValue() { * .google.protobuf.DoubleValue min_value = 9; */ public com.google.protobuf.DoubleValue.Builder getMinValueBuilder() { - + onChanged(); return getMinValueFieldBuilder().getBuilder(); } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2408,11 +2666,12 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { if (minValueBuilder_ != null) { return minValueBuilder_.getMessageOrBuilder(); } else { - return minValue_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_; + return minValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_; } } /** + * + * *
      * For integer and double values specifies minimum allowed value.
      * 
@@ -2420,14 +2679,17 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { * .google.protobuf.DoubleValue min_value = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> getMinValueFieldBuilder() { if (minValueBuilder_ == null) { - minValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getMinValue(), - getParentForChildren(), - isClean()); + minValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder>( + getMinValue(), getParentForChildren(), isClean()); minValue_ = null; } return minValueBuilder_; @@ -2435,24 +2697,33 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { private com.google.protobuf.DoubleValue maxValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> maxValueBuilder_; + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + maxValueBuilder_; /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; + * * @return Whether the maxValue field is set. */ public boolean hasMaxValue() { return maxValueBuilder_ != null || maxValue_ != null; } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; + * * @return The maxValue. */ public com.google.protobuf.DoubleValue getMaxValue() { @@ -2463,6 +2734,8 @@ public com.google.protobuf.DoubleValue getMaxValue() { } } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2483,14 +2756,15 @@ public Builder setMaxValue(com.google.protobuf.DoubleValue value) { return this; } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
* * .google.protobuf.DoubleValue max_value = 10; */ - public Builder setMaxValue( - com.google.protobuf.DoubleValue.Builder builderForValue) { + public Builder setMaxValue(com.google.protobuf.DoubleValue.Builder builderForValue) { if (maxValueBuilder_ == null) { maxValue_ = builderForValue.build(); onChanged(); @@ -2501,6 +2775,8 @@ public Builder setMaxValue( return this; } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2511,7 +2787,7 @@ public Builder mergeMaxValue(com.google.protobuf.DoubleValue value) { if (maxValueBuilder_ == null) { if (maxValue_ != null) { maxValue_ = - com.google.protobuf.DoubleValue.newBuilder(maxValue_).mergeFrom(value).buildPartial(); + com.google.protobuf.DoubleValue.newBuilder(maxValue_).mergeFrom(value).buildPartial(); } else { maxValue_ = value; } @@ -2523,6 +2799,8 @@ public Builder mergeMaxValue(com.google.protobuf.DoubleValue value) { return this; } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2541,6 +2819,8 @@ public Builder clearMaxValue() { return this; } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2548,11 +2828,13 @@ public Builder clearMaxValue() { * .google.protobuf.DoubleValue max_value = 10; */ public com.google.protobuf.DoubleValue.Builder getMaxValueBuilder() { - + onChanged(); return getMaxValueFieldBuilder().getBuilder(); } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2563,11 +2845,12 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { if (maxValueBuilder_ != null) { return maxValueBuilder_.getMessageOrBuilder(); } else { - return maxValue_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; + return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; } } /** + * + * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2575,39 +2858,51 @@ public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { * .google.protobuf.DoubleValue max_value = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> getMaxValueFieldBuilder() { if (maxValueBuilder_ == null) { - maxValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getMaxValue(), - getParentForChildren(), - isClean()); + maxValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder>( + getMaxValue(), getParentForChildren(), isClean()); maxValue_ = null; } return maxValueBuilder_; } private java.util.List fields_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fields_ = new java.util.ArrayList(fields_); + fields_ = + new java.util.ArrayList( + fields_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> fieldsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + fieldsBuilder_; /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public java.util.List getFieldsList() { + public java.util.List + getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -2615,6 +2910,8 @@ public java.util.List * Deprecated. This field has no effect. *
@@ -2629,6 +2926,8 @@ public int getFieldsCount() { } } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2643,6 +2942,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getFields(i } } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2664,6 +2965,8 @@ public Builder setFields( return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2671,7 +2974,8 @@ public Builder setFields( * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ public Builder setFields( - int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -2682,6 +2986,8 @@ public Builder setFields( return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2702,6 +3008,8 @@ public Builder addFields(com.google.cloud.bigquery.datatransfer.v1.DataSourcePar return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2723,6 +3031,8 @@ public Builder addFields( return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2741,6 +3051,8 @@ public Builder addFields( return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2748,7 +3060,8 @@ public Builder addFields( * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ public Builder addFields( - int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -2759,6 +3072,8 @@ public Builder addFields( return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2766,11 +3081,11 @@ public Builder addFields( * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ public Builder addAllFields( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -2778,6 +3093,8 @@ public Builder addAllFields( return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2795,6 +3112,8 @@ public Builder clearFields() { return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2812,6 +3131,8 @@ public Builder removeFields(int index) { return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2823,28 +3144,34 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder get return getFieldsFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getFieldsOrBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder + getFieldsOrBuilder(int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); } else { + return fields_.get(index); + } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -2852,17 +3179,23 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder ge } } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder + addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** + * + * *
      * Deprecated. This field has no effect.
      * 
@@ -2871,30 +3204,37 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder add */ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance()); } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( - fields_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>( + fields_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; @@ -2902,19 +3242,21 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Builder add private java.lang.Object validationDescription_ = ""; /** + * + * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; + * * @return The validationDescription. */ public java.lang.String getValidationDescription() { java.lang.Object ref = validationDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationDescription_ = s; return s; @@ -2923,21 +3265,22 @@ public java.lang.String getValidationDescription() { } } /** + * + * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; + * * @return The bytes for validationDescription. */ - public com.google.protobuf.ByteString - getValidationDescriptionBytes() { + public com.google.protobuf.ByteString getValidationDescriptionBytes() { java.lang.Object ref = validationDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); validationDescription_ = b; return b; } else { @@ -2945,57 +3288,64 @@ public java.lang.String getValidationDescription() { } } /** + * + * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; + * * @param value The validationDescription to set. * @return This builder for chaining. */ - public Builder setValidationDescription( - java.lang.String value) { + public Builder setValidationDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + validationDescription_ = value; onChanged(); return this; } /** + * + * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; + * * @return This builder for chaining. */ public Builder clearValidationDescription() { - + validationDescription_ = getDefaultInstance().getValidationDescription(); onChanged(); return this; } /** + * + * *
      * Description of the requirements for this field, in case the user input does
      * not fulfill the regex pattern or min/max values.
      * 
* * string validation_description = 12; + * * @param value The bytes for validationDescription to set. * @return This builder for chaining. */ - public Builder setValidationDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setValidationDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationDescription_ = value; onChanged(); return this; @@ -3003,18 +3353,20 @@ public Builder setValidationDescriptionBytes( private java.lang.Object validationHelpUrl_ = ""; /** + * + * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; + * * @return The validationHelpUrl. */ public java.lang.String getValidationHelpUrl() { java.lang.Object ref = validationHelpUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationHelpUrl_ = s; return s; @@ -3023,20 +3375,21 @@ public java.lang.String getValidationHelpUrl() { } } /** + * + * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; + * * @return The bytes for validationHelpUrl. */ - public com.google.protobuf.ByteString - getValidationHelpUrlBytes() { + public com.google.protobuf.ByteString getValidationHelpUrlBytes() { java.lang.Object ref = validationHelpUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); validationHelpUrl_ = b; return b; } else { @@ -3044,66 +3397,76 @@ public java.lang.String getValidationHelpUrl() { } } /** + * + * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; + * * @param value The validationHelpUrl to set. * @return This builder for chaining. */ - public Builder setValidationHelpUrl( - java.lang.String value) { + public Builder setValidationHelpUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + validationHelpUrl_ = value; onChanged(); return this; } /** + * + * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; + * * @return This builder for chaining. */ public Builder clearValidationHelpUrl() { - + validationHelpUrl_ = getDefaultInstance().getValidationHelpUrl(); onChanged(); return this; } /** + * + * *
      * URL to a help document to further explain the naming requirements.
      * 
* * string validation_help_url = 13; + * * @param value The bytes for validationHelpUrl to set. * @return This builder for chaining. */ - public Builder setValidationHelpUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setValidationHelpUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationHelpUrl_ = value; onChanged(); return this; } - private boolean immutable_ ; + private boolean immutable_; /** + * + * *
      * Cannot be changed after initial creation.
      * 
* * bool immutable = 14; + * * @return The immutable. */ @java.lang.Override @@ -3111,42 +3474,51 @@ public boolean getImmutable() { return immutable_; } /** + * + * *
      * Cannot be changed after initial creation.
      * 
* * bool immutable = 14; + * * @param value The immutable to set. * @return This builder for chaining. */ public Builder setImmutable(boolean value) { - + immutable_ = value; onChanged(); return this; } /** + * + * *
      * Cannot be changed after initial creation.
      * 
* * bool immutable = 14; + * * @return This builder for chaining. */ public Builder clearImmutable() { - + immutable_ = false; onChanged(); return this; } - private boolean recurse_ ; + private boolean recurse_; /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool recurse = 15; + * * @return The recurse. */ @java.lang.Override @@ -3154,43 +3526,52 @@ public boolean getRecurse() { return recurse_; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool recurse = 15; + * * @param value The recurse to set. * @return This builder for chaining. */ public Builder setRecurse(boolean value) { - + recurse_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated. This field has no effect.
      * 
* * bool recurse = 15; + * * @return This builder for chaining. */ public Builder clearRecurse() { - + recurse_ = false; onChanged(); return this; } - private boolean deprecated_ ; + private boolean deprecated_; /** + * + * *
      * If true, it should not be used in new transfers, and it should not be
      * visible to users.
      * 
* * bool deprecated = 20; + * * @return The deprecated. */ @java.lang.Override @@ -3198,39 +3579,45 @@ public boolean getDeprecated() { return deprecated_; } /** + * + * *
      * If true, it should not be used in new transfers, and it should not be
      * visible to users.
      * 
* * bool deprecated = 20; + * * @param value The deprecated to set. * @return This builder for chaining. */ public Builder setDeprecated(boolean value) { - + deprecated_ = value; onChanged(); return this; } /** + * + * *
      * If true, it should not be used in new transfers, and it should not be
      * visible to users.
      * 
* * bool deprecated = 20; + * * @return This builder for chaining. */ public Builder clearDeprecated() { - + deprecated_ = 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); } @@ -3240,12 +3627,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) - private static final com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter(); } @@ -3254,27 +3642,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSourceParameter 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 DataSourceParameter 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; @@ -3289,6 +3677,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java similarity index 82% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java index 98b778a8ae80..f1c8135bc2c8 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameterOrBuilder.java @@ -1,191 +1,257 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface DataSourceParameterOrBuilder extends +public interface DataSourceParameterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Parameter identifier.
    * 
* * string param_id = 1; + * * @return The paramId. */ java.lang.String getParamId(); /** + * + * *
    * Parameter identifier.
    * 
* * string param_id = 1; + * * @return The bytes for paramId. */ - com.google.protobuf.ByteString - getParamIdBytes(); + com.google.protobuf.ByteString getParamIdBytes(); /** + * + * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Parameter display name in the user interface.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Parameter description.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Parameter description.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Parameter type.
    * 
* * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4; + * * @return The type. */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType(); /** + * + * *
    * Is parameter required.
    * 
* * bool required = 5; + * * @return The required. */ boolean getRequired(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * bool repeated = 6; + * * @return The repeated. */ boolean getRepeated(); /** + * + * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; + * * @return The validationRegex. */ java.lang.String getValidationRegex(); /** + * + * *
    * Regular expression which can be used for parameter validation.
    * 
* * string validation_regex = 7; + * * @return The bytes for validationRegex. */ - com.google.protobuf.ByteString - getValidationRegexBytes(); + com.google.protobuf.ByteString getValidationRegexBytes(); /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @return A list containing the allowedValues. */ - java.util.List - getAllowedValuesList(); + java.util.List getAllowedValuesList(); /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @return The count of allowedValues. */ int getAllowedValuesCount(); /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @param index The index of the element to return. * @return The allowedValues at the given index. */ java.lang.String getAllowedValues(int index); /** + * + * *
    * All possible values for the parameter.
    * 
* * repeated string allowed_values = 8; + * * @param index The index of the value to return. * @return The bytes of the allowedValues at the given index. */ - com.google.protobuf.ByteString - getAllowedValuesBytes(int index); + com.google.protobuf.ByteString getAllowedValuesBytes(int index); /** + * + * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; + * * @return Whether the minValue field is set. */ boolean hasMinValue(); /** + * + * *
    * For integer and double values specifies minimum allowed value.
    * 
* * .google.protobuf.DoubleValue min_value = 9; + * * @return The minValue. */ com.google.protobuf.DoubleValue getMinValue(); /** + * + * *
    * For integer and double values specifies minimum allowed value.
    * 
@@ -195,24 +261,32 @@ public interface DataSourceParameterOrBuilder extends com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder(); /** + * + * *
    * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; + * * @return Whether the maxValue field is set. */ boolean hasMaxValue(); /** + * + * *
    * For integer and double values specifies maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; + * * @return The maxValue. */ com.google.protobuf.DoubleValue getMaxValue(); /** + * + * *
    * For integer and double values specifies maximum allowed value.
    * 
@@ -222,15 +296,18 @@ public interface DataSourceParameterOrBuilder extends com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -239,6 +316,8 @@ public interface DataSourceParameterOrBuilder extends */ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getFields(int index); /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -247,15 +326,19 @@ public interface DataSourceParameterOrBuilder extends */ int getFieldsCount(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
@@ -266,74 +349,93 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder getFields int index); /** + * + * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; + * * @return The validationDescription. */ java.lang.String getValidationDescription(); /** + * + * *
    * Description of the requirements for this field, in case the user input does
    * not fulfill the regex pattern or min/max values.
    * 
* * string validation_description = 12; + * * @return The bytes for validationDescription. */ - com.google.protobuf.ByteString - getValidationDescriptionBytes(); + com.google.protobuf.ByteString getValidationDescriptionBytes(); /** + * + * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; + * * @return The validationHelpUrl. */ java.lang.String getValidationHelpUrl(); /** + * + * *
    * URL to a help document to further explain the naming requirements.
    * 
* * string validation_help_url = 13; + * * @return The bytes for validationHelpUrl. */ - com.google.protobuf.ByteString - getValidationHelpUrlBytes(); + com.google.protobuf.ByteString getValidationHelpUrlBytes(); /** + * + * *
    * Cannot be changed after initial creation.
    * 
* * bool immutable = 14; + * * @return The immutable. */ boolean getImmutable(); /** + * + * *
    * Deprecated. This field has no effect.
    * 
* * bool recurse = 15; + * * @return The recurse. */ boolean getRecurse(); /** + * + * *
    * If true, it should not be used in new transfers, and it should not be
    * visible to users.
    * 
* * bool deprecated = 20; + * * @return The deprecated. */ boolean getDeprecated(); diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java new file mode 100644 index 000000000000..502ade211e0c --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java @@ -0,0 +1,674 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public final class DataTransferProto { + private DataTransferProto() {} + + 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_datatransfer_v1_DataSourceParameter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/bigquery/datatransfer/v1/" + + "datatransfer.proto\022%google.cloud.bigquer" + + "y.datatransfer.v1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0324google/cloud/bigquery/data" + + "transfer/v1/transfer.proto\032\036google/proto" + + "buf/duration.proto\032\033google/protobuf/empt" + + "y.proto\032 google/protobuf/field_mask.prot" + + "o\032\037google/protobuf/timestamp.proto\032\036goog" + + "le/protobuf/wrappers.proto\"\205\005\n\023DataSourc" + + "eParameter\022\020\n\010param_id\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022M\n\004type\030" + + "\004 \001(\0162?.google.cloud.bigquery.datatransf" + + "er.v1.DataSourceParameter.Type\022\020\n\010requir" + + "ed\030\005 \001(\010\022\020\n\010repeated\030\006 \001(\010\022\030\n\020validation" + + "_regex\030\007 \001(\t\022\026\n\016allowed_values\030\010 \003(\t\022/\n\t" + + "min_value\030\t \001(\0132\034.google.protobuf.Double" + + "Value\022/\n\tmax_value\030\n \001(\0132\034.google.protob" + + "uf.DoubleValue\022J\n\006fields\030\013 \003(\0132:.google." + + "cloud.bigquery.datatransfer.v1.DataSourc" + + "eParameter\022\036\n\026validation_description\030\014 \001" + + "(\t\022\033\n\023validation_help_url\030\r \001(\t\022\021\n\timmut" + + "able\030\016 \001(\010\022\017\n\007recurse\030\017 \001(\010\022\022\n\ndeprecate" + + "d\030\024 \001(\010\"i\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006STRING\020\001\022\013\n\007INTEGER\020\002\022\n\n\006DOUBLE\020\003\022\013\n\007BO" + + "OLEAN\020\004\022\n\n\006RECORD\020\005\022\r\n\tPLUS_PAGE\020\006\"\234\t\n\nD" + + "ataSource\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016data_sou" + + "rce_id\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\023\n\013de" + + "scription\030\004 \001(\t\022\021\n\tclient_id\030\005 \001(\t\022\016\n\006sc" + + "opes\030\006 \003(\t\022N\n\rtransfer_type\030\007 \001(\01623.goog" + + "le.cloud.bigquery.datatransfer.v1.Transf" + + "erTypeB\002\030\001\022\'\n\033supports_multiple_transfer" + + "s\030\010 \001(\010B\002\030\001\022\037\n\027update_deadline_seconds\030\t" + + " \001(\005\022\030\n\020default_schedule\030\n \001(\t\022 \n\030suppor" + + "ts_custom_schedule\030\013 \001(\010\022N\n\nparameters\030\014" + + " \003(\0132:.google.cloud.bigquery.datatransfe" + + "r.v1.DataSourceParameter\022\020\n\010help_url\030\r \001" + + "(\t\022_\n\022authorization_type\030\016 \001(\0162C.google." + + "cloud.bigquery.datatransfer.v1.DataSourc" + + "e.AuthorizationType\022\\\n\021data_refresh_type" + + "\030\017 \001(\0162A.google.cloud.bigquery.datatrans" + + "fer.v1.DataSource.DataRefreshType\022(\n def" + + "ault_data_refresh_window_days\030\020 \001(\005\022\034\n\024m" + + "anual_runs_disabled\030\021 \001(\010\022<\n\031minimum_sch" + + "edule_interval\030\022 \001(\0132\031.google.protobuf.D" + + "uration\"\212\001\n\021AuthorizationType\022\"\n\036AUTHORI" + + "ZATION_TYPE_UNSPECIFIED\020\000\022\026\n\022AUTHORIZATI" + + "ON_CODE\020\001\022\"\n\036GOOGLE_PLUS_AUTHORIZATION_C" + + "ODE\020\002\022\025\n\021FIRST_PARTY_OAUTH\020\003\"c\n\017DataRefr" + + "eshType\022!\n\035DATA_REFRESH_TYPE_UNSPECIFIED" + + "\020\000\022\022\n\016SLIDING_WINDOW\020\001\022\031\n\025CUSTOM_SLIDING" + + "_WINDOW\020\002:\245\001\352A\241\001\n.bigquerydatatransfer.g" + + "oogleapis.com/DataSource\022,projects/{proj" + + "ect}/dataSources/{data_source}\022Aprojects" + + "/{project}/locations/{location}/dataSour" + + "ces/{data_source}\"\\\n\024GetDataSourceReques" + + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.bigquerydatatra" + + "nsfer.googleapis.com/DataSource\"\207\001\n\026List" + + "DataSourcesRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" + + "A0\022.bigquerydatatransfer.googleapis.com/" + + "DataSource\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_s" + + "ize\030\004 \001(\005\"\200\001\n\027ListDataSourcesResponse\022G\n" + + "\014data_sources\030\001 \003(\01321.google.cloud.bigqu" + + "ery.datatransfer.v1.DataSource\022\034\n\017next_p" + + "age_token\030\002 \001(\tB\003\340A\003\"\216\002\n\033CreateTransferC" + + "onfigRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bi" + + "gquerydatatransfer.googleapis.com/Transf" + + "erConfig\022S\n\017transfer_config\030\002 \001(\01325.goog" + + "le.cloud.bigquery.datatransfer.v1.Transf" + + "erConfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(" + + "\t\022\024\n\014version_info\030\005 \001(\t\022\034\n\024service_accou" + + "nt_name\030\006 \001(\t\"\370\001\n\033UpdateTransferConfigRe" + + "quest\022S\n\017transfer_config\030\001 \001(\01325.google." + + "cloud.bigquery.datatransfer.v1.TransferC" + + "onfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(\t\0224" + + "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022\024\n\014version_info\030\005 \001(\t\022\034\n\024se" + + "rvice_account_name\030\006 \001(\t\"d\n\030GetTransferC" + + "onfigRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2bigq" + + "uerydatatransfer.googleapis.com/Transfer" + + "Config\"g\n\033DeleteTransferConfigRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatransfe" + + "r.googleapis.com/TransferConfig\"V\n\025GetTr" + + "ansferRunRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'" + + "bigquerydatatransfer.googleapis.com/Run\"" + + "Y\n\030DeleteTransferRunRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'bigquerydatatransfer.googleap" + + "is.com/Run\"\250\001\n\032ListTransferConfigsReques" + + "t\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bigquerydatat" + + "ransfer.googleapis.com/TransferConfig\022\027\n" + + "\017data_source_ids\030\002 \003(\t\022\022\n\npage_token\030\003 \001" + + "(\t\022\021\n\tpage_size\030\004 \001(\005\"\221\001\n\033ListTransferCo" + + "nfigsResponse\022T\n\020transfer_configs\030\001 \003(\0132" + + "5.google.cloud.bigquery.datatransfer.v1." + + "TransferConfigB\003\340A\003\022\034\n\017next_page_token\030\002" + + " \001(\tB\003\340A\003\"\336\002\n\027ListTransferRunsRequest\022?\n" + + "\006parent\030\001 \001(\tB/\340A\002\372A)\022\'bigquerydatatrans" + + "fer.googleapis.com/Run\022D\n\006states\030\002 \003(\01624" + + ".google.cloud.bigquery.datatransfer.v1.T" + + "ransferState\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage" + + "_size\030\004 \001(\005\022^\n\013run_attempt\030\005 \001(\0162I.googl" + + "e.cloud.bigquery.datatransfer.v1.ListTra" + + "nsferRunsRequest.RunAttempt\"5\n\nRunAttemp" + + "t\022\033\n\027RUN_ATTEMPT_UNSPECIFIED\020\000\022\n\n\006LATEST" + + "\020\001\"\210\001\n\030ListTransferRunsResponse\022N\n\rtrans" + + "fer_runs\030\001 \003(\01322.google.cloud.bigquery.d" + + "atatransfer.v1.TransferRunB\003\340A\003\022\034\n\017next_" + + "page_token\030\002 \001(\tB\003\340A\003\"\340\001\n\027ListTransferLo" + + "gsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'bigqu" + + "erydatatransfer.googleapis.com/Run\022\022\n\npa" + + "ge_token\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\022]\n\rmes" + + "sage_types\030\006 \003(\0162F.google.cloud.bigquery" + + ".datatransfer.v1.TransferMessage.Message" + + "Severity\"\220\001\n\030ListTransferLogsResponse\022V\n" + + "\021transfer_messages\030\001 \003(\01326.google.cloud." + + "bigquery.datatransfer.v1.TransferMessage" + + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"^\n\026C" + + "heckValidCredsRequest\022D\n\004name\030\001 \001(\tB6\340A\002" + + "\372A0\n.bigquerydatatransfer.googleapis.com" + + "/DataSource\"2\n\027CheckValidCredsResponse\022\027" + + "\n\017has_valid_creds\030\001 \001(\010\"\321\001\n\033ScheduleTran" + + "sferRunsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\n" + + "2bigquerydatatransfer.googleapis.com/Tra" + + "nsferConfig\0223\n\nstart_time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\002\0221\n\010end_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\002\"`\n\034S" + + "cheduleTransferRunsResponse\022@\n\004runs\030\001 \003(" + + "\01322.google.cloud.bigquery.datatransfer.v" + + "1.TransferRun\"\207\003\n\036StartManualTransferRun" + + "sRequest\022G\n\006parent\030\001 \001(\tB7\372A4\n2bigqueryd" + + "atatransfer.googleapis.com/TransferConfi" + + "g\022o\n\024requested_time_range\030\003 \001(\0132O.google" + + ".cloud.bigquery.datatransfer.v1.StartMan" + + "ualTransferRunsRequest.TimeRangeH\000\0228\n\022re" + + "quested_run_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampH\000\032i\n\tTimeRange\022.\n\nstart_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\006\n\004time\"c\n\037StartManualTransferRunsRespon" + + "se\022@\n\004runs\030\001 \003(\01322.google.cloud.bigquery" + + ".datatransfer.v1.TransferRun\"A\n\030EnrollDa" + + "taSourcesRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017data_s" + + "ource_ids\030\002 \003(\t2\240!\n\023DataTransferService\022" + + "\346\001\n\rGetDataSource\022;.google.cloud.bigquer" + + "y.datatransfer.v1.GetDataSourceRequest\0321" + + ".google.cloud.bigquery.datatransfer.v1.D" + + "ataSource\"e\202\323\344\223\002X\022//v1/{name=projects/*/" + + "locations/*/dataSources/*}Z%\022#/v1/{name=" + + "projects/*/dataSources/*}\332A\004name\022\371\001\n\017Lis" + + "tDataSources\022=.google.cloud.bigquery.dat" + + "atransfer.v1.ListDataSourcesRequest\032>.go" + + "ogle.cloud.bigquery.datatransfer.v1.List" + + "DataSourcesResponse\"g\202\323\344\223\002X\022//v1/{parent" + + "=projects/*/locations/*}/dataSourcesZ%\022#" + + "/v1/{parent=projects/*}/dataSources\332A\006pa" + + "rent\022\266\002\n\024CreateTransferConfig\022B.google.c" + + "loud.bigquery.datatransfer.v1.CreateTran" + + "sferConfigRequest\0325.google.cloud.bigquer" + + "y.datatransfer.v1.TransferConfig\"\242\001\202\323\344\223\002" + + "\202\001\"3/v1/{parent=projects/*/locations/*}/" + + "transferConfigs:\017transfer_configZ:\"\'/v1/" + + "{parent=projects/*}/transferConfigs:\017tra" + + "nsfer_config\332A\026parent,transfer_config\022\333\002" + + "\n\024UpdateTransferConfig\022B.google.cloud.bi" + + "gquery.datatransfer.v1.UpdateTransferCon" + + "figRequest\0325.google.cloud.bigquery.datat" + + "ransfer.v1.TransferConfig\"\307\001\202\323\344\223\002\242\0012C/v1" + + "/{transfer_config.name=projects/*/locati" + + "ons/*/transferConfigs/*}:\017transfer_confi" + + "gZJ27/v1/{transfer_config.name=projects/" + + "*/transferConfigs/*}:\017transfer_config\332A\033" + + "transfer_config,update_mask\022\341\001\n\024DeleteTr" + + "ansferConfig\022B.google.cloud.bigquery.dat" + + "atransfer.v1.DeleteTransferConfigRequest" + + "\032\026.google.protobuf.Empty\"m\202\323\344\223\002`*3/v1/{n" + + "ame=projects/*/locations/*/transferConfi" + + "gs/*}Z)*\'/v1/{name=projects/*/transferCo" + + "nfigs/*}\332A\004name\022\372\001\n\021GetTransferConfig\022?." + + "google.cloud.bigquery.datatransfer.v1.Ge" + + "tTransferConfigRequest\0325.google.cloud.bi" + + "gquery.datatransfer.v1.TransferConfig\"m\202" + + "\323\344\223\002`\0223/v1/{name=projects/*/locations/*/" + + "transferConfigs/*}Z)\022\'/v1/{name=projects" + + "/*/transferConfigs/*}\332A\004name\022\215\002\n\023ListTra" + + "nsferConfigs\022A.google.cloud.bigquery.dat" + + "atransfer.v1.ListTransferConfigsRequest\032" + + "B.google.cloud.bigquery.datatransfer.v1." + + "ListTransferConfigsResponse\"o\202\323\344\223\002`\0223/v1" + + "/{parent=projects/*/locations/*}/transfe" + + "rConfigsZ)\022\'/v1/{parent=projects/*}/tran" + + "sferConfigs\332A\006parent\022\315\002\n\024ScheduleTransfe" + + "rRuns\022B.google.cloud.bigquery.datatransf" + + "er.v1.ScheduleTransferRunsRequest\032C.goog" + + "le.cloud.bigquery.datatransfer.v1.Schedu" + + "leTransferRunsResponse\"\253\001\210\002\001\202\323\344\223\002\204\001\"B/v1" + + "/{parent=projects/*/locations/*/transfer" + + "Configs/*}:scheduleRuns:\001*Z;\"6/v1/{paren" + + "t=projects/*/transferConfigs/*}:schedule" + + "Runs:\001*\332A\032parent,start_time,end_time\022\274\002\n" + + "\027StartManualTransferRuns\022E.google.cloud." + + "bigquery.datatransfer.v1.StartManualTran" + + "sferRunsRequest\032F.google.cloud.bigquery." + + "datatransfer.v1.StartManualTransferRunsR" + + "esponse\"\221\001\202\323\344\223\002\212\001\"E/v1/{parent=projects/" + + "*/locations/*/transferConfigs/*}:startMa" + + "nualRuns:\001*Z>\"9/v1/{parent=projects/*/tr" + + "ansferConfigs/*}:startManualRuns:\001*\022\377\001\n\016" + + "GetTransferRun\022<.google.cloud.bigquery.d" + + "atatransfer.v1.GetTransferRunRequest\0322.g" + + "oogle.cloud.bigquery.datatransfer.v1.Tra" + + "nsferRun\"{\202\323\344\223\002n\022:/v1/{name=projects/*/l" + + "ocations/*/transferConfigs/*/runs/*}Z0\022." + + "/v1/{name=projects/*/transferConfigs/*/r" + + "uns/*}\332A\004name\022\351\001\n\021DeleteTransferRun\022?.go" + + "ogle.cloud.bigquery.datatransfer.v1.Dele" + + "teTransferRunRequest\032\026.google.protobuf.E" + + "mpty\"{\202\323\344\223\002n*:/v1/{name=projects/*/locat" + + "ions/*/transferConfigs/*/runs/*}Z0*./v1/" + + "{name=projects/*/transferConfigs/*/runs/" + + "*}\332A\004name\022\222\002\n\020ListTransferRuns\022>.google." + + "cloud.bigquery.datatransfer.v1.ListTrans" + + "ferRunsRequest\032?.google.cloud.bigquery.d" + + "atatransfer.v1.ListTransferRunsResponse\"" + + "}\202\323\344\223\002n\022:/v1/{parent=projects/*/location" + + "s/*/transferConfigs/*}/runsZ0\022./v1/{pare" + + "nt=projects/*/transferConfigs/*}/runs\332A\006" + + "parent\022\262\002\n\020ListTransferLogs\022>.google.clo" + + "ud.bigquery.datatransfer.v1.ListTransfer" + + "LogsRequest\032?.google.cloud.bigquery.data" + + "transfer.v1.ListTransferLogsResponse\"\234\001\202" + + "\323\344\223\002\214\001\022I/v1/{parent=projects/*/locations" + + "/*/transferConfigs/*/runs/*}/transferLog" + + "sZ?\022=/v1/{parent=projects/*/transferConf" + + "igs/*/runs/*}/transferLogs\332A\006parent\022\236\002\n\017" + + "CheckValidCreds\022=.google.cloud.bigquery." + + "datatransfer.v1.CheckValidCredsRequest\032>" + + ".google.cloud.bigquery.datatransfer.v1.C" + + "heckValidCredsResponse\"\213\001\202\323\344\223\002~\"?/v1/{na" + + "me=projects/*/locations/*/dataSources/*}" + + ":checkValidCreds:\001*Z8\"3/v1/{name=project" + + "s/*/dataSources/*}:checkValidCreds:\001*\332A\004" + + "name\022\332\001\n\021EnrollDataSources\022?.google.clou" + + "d.bigquery.datatransfer.v1.EnrollDataSou" + + "rcesRequest\032\026.google.protobuf.Empty\"l\202\323\344" + + "\223\002f\"3/v1/{name=projects/*/locations/*}:e" + + "nrollDataSources:\001*Z,\"\'/v1/{name=project" + + "s/*}:enrollDataSources:\001*\032W\312A#bigqueryda" + + "tatransfer.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\217\002\n)c" + + "om.google.cloud.bigquery.datatransfer.v1" + + "B\021DataTransferProtoP\001ZQgoogle.golang.org" + + "/genproto/googleapis/cloud/bigquery/data" + + "transfer/v1;datatransfer\252\002%Google.Cloud." + + "BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\" + + "BigQuery\\DataTransfer\\V1\352\002)Google::Cloud" + + "::Bigquery::DataTransfer::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor, + new java.lang.String[] { + "ParamId", + "DisplayName", + "Description", + "Type", + "Required", + "Repeated", + "ValidationRegex", + "AllowedValues", + "MinValue", + "MaxValue", + "Fields", + "ValidationDescription", + "ValidationHelpUrl", + "Immutable", + "Recurse", + "Deprecated", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor, + new java.lang.String[] { + "Name", + "DataSourceId", + "DisplayName", + "Description", + "ClientId", + "Scopes", + "TransferType", + "SupportsMultipleTransfers", + "UpdateDeadlineSeconds", + "DefaultSchedule", + "SupportsCustomSchedule", + "Parameters", + "HelpUrl", + "AuthorizationType", + "DataRefreshType", + "DefaultDataRefreshWindowDays", + "ManualRunsDisabled", + "MinimumScheduleInterval", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor, + new java.lang.String[] { + "DataSources", "NextPageToken", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "TransferConfig", "AuthorizationCode", "VersionInfo", "ServiceAccountName", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor, + new java.lang.String[] { + "TransferConfig", + "AuthorizationCode", + "UpdateMask", + "VersionInfo", + "ServiceAccountName", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "DataSourceIds", "PageToken", "PageSize", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor, + new java.lang.String[] { + "TransferConfigs", "NextPageToken", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor, + new java.lang.String[] { + "Parent", "States", "PageToken", "PageSize", "RunAttempt", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor, + new java.lang.String[] { + "TransferRuns", "NextPageToken", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "MessageTypes", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor, + new java.lang.String[] { + "TransferMessages", "NextPageToken", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor, + new java.lang.String[] { + "HasValidCreds", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor, + new java.lang.String[] { + "Parent", "StartTime", "EndTime", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor, + new java.lang.String[] { + "Runs", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor, + new java.lang.String[] { + "Parent", "RequestedTimeRange", "RequestedRunTime", "Time", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor = + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor, + new java.lang.String[] { + "Runs", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor, + new java.lang.String[] { + "Name", "DataSourceIds", + }); + 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.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java similarity index 61% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java index 40322c016d86..4544475ce385 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to delete data transfer information. All associated transfer runs
  * and log messages will be deleted as well.
@@ -11,54 +28,61 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest}
  */
-public final class DeleteTransferConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest)
     DeleteTransferConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteTransferConfigRequest.newBuilder() to construct.
   private DeleteTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteTransferConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteTransferConfigRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class,
+            com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * string 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,31 +91,33 @@ 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * string 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 { @@ -100,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,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_); } @@ -136,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.datatransfer.v1.DeleteTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other = + (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,96 +190,105 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest + 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.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest 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.datatransfer.v1.DeleteTransferConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest 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; } /** + * + * *
    * A request to delete data transfer information. All associated transfer runs
    * and log messages will be deleted as well.
@@ -261,33 +296,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest}
    */
-  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.datatransfer.v1.DeleteTransferConfigRequest)
       com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class,
+              com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.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();
@@ -297,14 +332,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.getDefaultInstance();
+    public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -318,7 +355,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest bui
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest result =
+          new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -328,46 +366,51 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest bui
     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.datatransfer.v1.DeleteTransferConfigRequest) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest)other);
+        return mergeFrom(
+            (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest other) {
+      if (other
+          == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -398,17 +441,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                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) {
@@ -421,20 +466,24 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string 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; @@ -443,22 +492,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string 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 { @@ -466,67 +518,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -536,41 +601,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTransferConfigRequest 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 DeleteTransferConfigRequest 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; @@ -582,9 +649,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..c5a7300289d3 --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.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/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface DeleteTransferConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java similarity index 61% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java index 063974137990..f3217566fe14 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to delete data transfer run information.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest} */ -public final class DeleteTransferRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteTransferRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) DeleteTransferRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteTransferRunRequest.newBuilder() to construct. private DeleteTransferRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteTransferRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteTransferRunRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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,31 +90,33 @@ 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,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_); } @@ -135,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.datatransfer.v1.DeleteTransferRunRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other = (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other = + (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) 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,129 +189,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest + 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.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest 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.datatransfer.v1.DeleteTransferRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest 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; } /** + * + * *
    * A request to delete data transfer run information.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest} */ - 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.datatransfer.v1.DeleteTransferRunRequest) com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.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(); @@ -295,14 +330,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + .getDefaultInstance(); } @java.lang.Override @@ -316,7 +353,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest result = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest(this); + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest result = + new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,46 +364,51 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest buildP 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.datatransfer.v1.DeleteTransferRunRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -419,20 +464,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string 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; @@ -441,22 +490,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string 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 { @@ -464,67 +516,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,41 +599,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTransferRunRequest 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 DeleteTransferRunRequest 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; @@ -580,9 +647,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java index e29ce2fde716..2667c68c29f0 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java @@ -1,33 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface DeleteTransferRunRequestOrBuilder extends +public interface DeleteTransferRunRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java similarity index 66% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java index 2012a142e107..1d1845d0cf52 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Represents preferences for sending email notifications for transfer run
  * events.
@@ -11,51 +28,55 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EmailPreferences}
  */
-public final class EmailPreferences extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EmailPreferences extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.EmailPreferences)
     EmailPreferencesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EmailPreferences.newBuilder() to construct.
   private EmailPreferences(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private EmailPreferences() {
-  }
+
+  private EmailPreferences() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EmailPreferences();
   }
 
   @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.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class,
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
   }
 
   public static final int ENABLE_FAILURE_EMAIL_FIELD_NUMBER = 1;
   private boolean enableFailureEmail_;
   /**
+   *
+   *
    * 
    * If true, email notifications will be sent on transfer run failures.
    * 
* * bool enable_failure_email = 1; + * * @return The enableFailureEmail. */ @java.lang.Override @@ -64,6 +85,7 @@ public boolean getEnableFailureEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -75,8 +97,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 (enableFailureEmail_ != false) { output.writeBool(1, enableFailureEmail_); } @@ -90,8 +111,7 @@ public int getSerializedSize() { size = 0; if (enableFailureEmail_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableFailureEmail_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableFailureEmail_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -101,15 +121,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.datatransfer.v1.EmailPreferences)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other = (com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) obj; + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other = + (com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) obj; - if (getEnableFailureEmail() - != other.getEnableFailureEmail()) return false; + if (getEnableFailureEmail() != other.getEnableFailureEmail()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -122,104 +142,111 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_FAILURE_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableFailureEmail()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFailureEmail()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences 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.datatransfer.v1.EmailPreferences prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences 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; } /** + * + * *
    * Represents preferences for sending email notifications for transfer run
    * events.
@@ -227,33 +254,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EmailPreferences}
    */
-  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.datatransfer.v1.EmailPreferences)
       com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class,
+              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.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();
@@ -263,9 +289,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor;
     }
 
     @java.lang.Override
@@ -284,7 +310,8 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.EmailPreferences result = new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(this);
+      com.google.cloud.bigquery.datatransfer.v1.EmailPreferences result =
+          new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(this);
       result.enableFailureEmail_ = enableFailureEmail_;
       onBuilt();
       return result;
@@ -294,38 +321,39 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.EmailPreferences)other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -333,7 +361,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance())
+        return this;
       if (other.getEnableFailureEmail() != false) {
         setEnableFailureEmail(other.getEnableFailureEmail());
       }
@@ -363,17 +392,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              enableFailureEmail_ = input.readBool();
-
-              break;
-            } // case 8
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                enableFailureEmail_ = input.readBool();
+
+                break;
+              } // case 8
+            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) {
@@ -384,13 +415,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean enableFailureEmail_ ;
+    private boolean enableFailureEmail_;
     /**
+     *
+     *
      * 
      * If true, email notifications will be sent on transfer run failures.
      * 
* * bool enable_failure_email = 1; + * * @return The enableFailureEmail. */ @java.lang.Override @@ -398,37 +432,43 @@ public boolean getEnableFailureEmail() { return enableFailureEmail_; } /** + * + * *
      * If true, email notifications will be sent on transfer run failures.
      * 
* * bool enable_failure_email = 1; + * * @param value The enableFailureEmail to set. * @return This builder for chaining. */ public Builder setEnableFailureEmail(boolean value) { - + enableFailureEmail_ = value; onChanged(); return this; } /** + * + * *
      * If true, email notifications will be sent on transfer run failures.
      * 
* * bool enable_failure_email = 1; + * * @return This builder for chaining. */ public Builder clearEnableFailureEmail() { - + enableFailureEmail_ = 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); } @@ -438,12 +478,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.EmailPreferences) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.EmailPreferences) private static final com.google.cloud.bigquery.datatransfer.v1.EmailPreferences DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(); } @@ -452,27 +492,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailPreferences 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 EmailPreferences 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; @@ -487,6 +527,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java new file mode 100644 index 000000000000..d15864cb06ae --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/transfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface EmailPreferencesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.EmailPreferences) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If true, email notifications will be sent on transfer run failures.
+   * 
+ * + * bool enable_failure_email = 1; + * + * @return The enableFailureEmail. + */ + boolean getEnableFailureEmail(); +} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java similarity index 67% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java index 47e600a3324d..4567bc3d0e84 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to enroll a set of data sources so they are visible in the
  * BigQuery UI's `Transfer` tab.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest}
  */
-public final class EnrollDataSourcesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EnrollDataSourcesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest)
     EnrollDataSourcesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EnrollDataSourcesRequest.newBuilder() to construct.
   private EnrollDataSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EnrollDataSourcesRequest() {
     name_ = "";
     dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -27,37 +45,41 @@ private EnrollDataSourcesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EnrollDataSourcesRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class,
+            com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The name of the project resource in the form: `projects/{project_id}`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -66,29 +88,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the project resource in the form: `projects/{project_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 { @@ -99,37 +121,45 @@ public java.lang.String getName() { public static final int DATA_SOURCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList dataSourceIds_; /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList - getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { return dataSourceIds_; } /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -137,21 +167,24 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString - getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -199,17 +231,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.datatransfer.v1.EnrollDataSourcesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other = (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other = + (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDataSourceIdsList() - .equals(other.getDataSourceIdsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDataSourceIdsList().equals(other.getDataSourceIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,96 +264,105 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest + 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.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest 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.datatransfer.v1.EnrollDataSourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest 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; } /** + * + * *
    * A request to enroll a set of data sources so they are visible in the
    * BigQuery UI's `Transfer` tab.
@@ -330,33 +370,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest}
    */
-  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.datatransfer.v1.EnrollDataSourcesRequest)
       com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class,
+              com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.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();
@@ -368,14 +408,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.getDefaultInstance();
+    public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -389,7 +431,8 @@ public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest build(
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest result = new com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest result =
+          new com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -405,46 +448,51 @@ public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest buildP
     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.datatransfer.v1.EnrollDataSourcesRequest) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest)other);
+        return mergeFrom(
+            (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest other) {
+      if (other
+          == com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -485,23 +533,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureDataSourceIdsIsMutable();
-              dataSourceIds_.add(s);
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDataSourceIdsIsMutable();
+                dataSourceIds_.add(s);
+                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) {
@@ -511,22 +562,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the project resource in the form: `projects/{project_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; @@ -535,20 +589,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the project resource in the form: `projects/{project_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 { @@ -556,98 +611,115 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the project resource in the form: `projects/{project_id}`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the project resource in the form: `projects/{project_id}`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the project resource in the form: `projects/{project_id}`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList dataSourceIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDataSourceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dataSourceIds_ = new com.google.protobuf.LazyStringArrayList(dataSourceIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList - getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { return dataSourceIds_.getUnmodifiableView(); } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -655,85 +727,95 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString - getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @param index The index to set the value at. * @param value The dataSourceIds to set. * @return This builder for chaining. */ - public Builder setDataSourceIds( - int index, java.lang.String value) { + public Builder setDataSourceIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @param value The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIds( - java.lang.String value) { + public Builder addDataSourceIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); return this; } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @param values The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addAllDataSourceIds( - java.lang.Iterable values) { + public Builder addAllDataSourceIds(java.lang.Iterable values) { ensureDataSourceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataSourceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSourceIds_); onChanged(); return this; } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @return This builder for chaining. */ public Builder clearDataSourceIds() { @@ -743,29 +825,31 @@ public Builder clearDataSourceIds() { return this; } /** + * + * *
      * Data sources that are enrolled. It is required to provide at least one
      * data source id.
      * 
* * repeated string data_source_ids = 2; + * * @param value The bytes of the dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -775,41 +859,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnrollDataSourcesRequest 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 EnrollDataSourcesRequest 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; @@ -821,9 +907,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java index 320b761aa833..6676bb81313c 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EnrollDataSourcesRequestOrBuilder.java @@ -1,74 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface EnrollDataSourcesRequestOrBuilder extends +public interface EnrollDataSourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the project resource in the form: `projects/{project_id}`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the project resource in the form: `projects/{project_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @return A list containing the dataSourceIds. */ - java.util.List - getDataSourceIdsList(); + java.util.List getDataSourceIdsList(); /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @return The count of dataSourceIds. */ int getDataSourceIdsCount(); /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ java.lang.String getDataSourceIds(int index); /** + * + * *
    * Data sources that are enrolled. It is required to provide at least one
    * data source id.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - com.google.protobuf.ByteString - getDataSourceIdsBytes(int index); + com.google.protobuf.ByteString getDataSourceIdsBytes(int index); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java similarity index 63% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java index ad2c478d6250..6bef9817ff89 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to get data source info.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest} */ -public final class GetDataSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDataSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) GetDataSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDataSourceRequest.newBuilder() to construct. private GetDataSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDataSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDataSourceRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
    * 
* - * string 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,31 +90,33 @@ 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/dataSources/{data_source_id}` or
    * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
    * 
* - * string 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 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,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_); } @@ -135,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.datatransfer.v1.GetDataSourceRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest other = (com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest other = + (com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) 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,129 +189,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest 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.datatransfer.v1.GetDataSourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest 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; } /** + * + * *
    * A request to get data source info.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest} */ - 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.datatransfer.v1.GetDataSourceRequest) com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.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(); @@ -295,13 +328,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance(); } @@ -316,7 +350,8 @@ public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest(this); + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest result = + new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,38 +361,39 @@ public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -365,7 +401,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -419,20 +459,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * string 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; @@ -441,22 +485,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * string 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 { @@ -464,67 +511,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/dataSources/{data_source_id}` or
      * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,41 +594,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataSourceRequest 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 GetDataSourceRequest 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; @@ -580,9 +642,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java new file mode 100644 index 000000000000..cc45cf55a565 --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.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/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface GetDataSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/dataSources/{data_source_id}` or
+   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java similarity index 61% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java index 46d4bc9f4dab..a27e91fb9e1b 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to get data transfer information.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest} */ -public final class GetTransferConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) GetTransferConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetTransferConfigRequest.newBuilder() to construct. private GetTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetTransferConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTransferConfigRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * string 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,31 +90,33 @@ 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
    * 
* - * string 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 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,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_); } @@ -135,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.datatransfer.v1.GetTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other = + (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) 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,129 +189,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest + 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.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest 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.datatransfer.v1.GetTransferConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest 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; } /** + * + * *
    * A request to get data transfer information.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest} */ - 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.datatransfer.v1.GetTransferConfigRequest) com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.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(); @@ -295,14 +330,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -316,7 +353,8 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest(this); + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest result = + new com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,46 +364,51 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest buildP 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.datatransfer.v1.GetTransferConfigRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -419,20 +464,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string 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; @@ -441,22 +490,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string 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 { @@ -464,67 +516,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,41 +599,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransferConfigRequest 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 GetTransferConfigRequest 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; @@ -580,9 +647,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..30b572f11945 --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.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/datatransfer/v1/datatransfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface GetTransferConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The field will contain name of the resource requested, for example:
+   * `projects/{project_id}/transferConfigs/{config_id}` or
+   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java similarity index 63% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java index 2a104ae50f0e..293f49cfdc58 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to get data transfer run information.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest} */ -public final class GetTransferRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetTransferRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) GetTransferRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetTransferRunRequest.newBuilder() to construct. private GetTransferRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetTransferRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTransferRunRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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,31 +90,33 @@ 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,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_); } @@ -135,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.datatransfer.v1.GetTransferRunRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other = (com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other = + (com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) 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,129 +189,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest 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.datatransfer.v1.GetTransferRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest 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; } /** + * + * *
    * A request to get data transfer run information.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest} */ - 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.datatransfer.v1.GetTransferRunRequest) com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.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(); @@ -295,13 +328,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance(); } @@ -316,7 +350,8 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest(this); + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest result = + new com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,46 +361,50 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -419,20 +460,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string 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; @@ -441,22 +486,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string 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 { @@ -464,67 +512,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The field will contain name of the resource requested, for example:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,41 +595,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransferRunRequest 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 GetTransferRunRequest 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; @@ -580,9 +643,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java index cda83fe6ad35..7fcea891548b 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java @@ -1,33 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface GetTransferRunRequestOrBuilder extends +public interface GetTransferRunRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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. The field will contain name of the resource requested, for example:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
    * 
* - * string 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(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java similarity index 67% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java index bbf71e5a9f43..4efa3ad2760e 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Request to list supported data sources and their data transfer settings.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest} */ -public final class ListDataSourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDataSourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) ListDataSourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDataSourcesRequest.newBuilder() to construct. private ListDataSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDataSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,39 +44,45 @@ private ListDataSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDataSourcesRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
    * `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 @@ -67,31 +91,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
    * `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,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -111,6 +139,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -119,14 +148,15 @@ 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; } } /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -136,16 +166,15 @@ public java.lang.String getPageToken() {
    * 
* * 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 { @@ -156,11 +185,14 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -169,6 +201,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +213,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_); } @@ -207,8 +239,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; @@ -218,19 +249,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.datatransfer.v1.ListDataSourcesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other = + (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,129 +283,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest 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.datatransfer.v1.ListDataSourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to list supported data sources and their data transfer settings.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest} */ - 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.datatransfer.v1.ListDataSourcesRequest) com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.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(); @@ -390,13 +426,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance(); } @@ -411,7 +448,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest result = + new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -423,46 +461,50 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest buildPar 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.datatransfer.v1.ListDataSourcesRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -500,27 +542,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + 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) { @@ -533,20 +579,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
      * `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; @@ -555,22 +605,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
      * `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 { @@ -578,60 +631,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The BigQuery project id for which data sources should be returned.
      * Must be in the form: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -639,6 +705,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -648,13 +716,13 @@ public Builder setParentBytes(
      * 
* * 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; @@ -663,6 +731,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -672,15 +742,14 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -688,6 +757,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -697,20 +768,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -720,15 +793,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListDataSourcesRequest` list results. For multiple-page
@@ -738,28 +814,31 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -767,37 +846,43 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -807,41 +892,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataSourcesRequest 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 ListDataSourcesRequest 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; @@ -853,9 +940,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java index 303969ebfaca..ef4c188bc052 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListDataSourcesRequestOrBuilder extends +public interface ListDataSourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
    * `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. The BigQuery project id for which data sources should be returned.
    * Must be in the form: `projects/{project_id}` or
    * `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(); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -41,10 +68,13 @@ public interface ListDataSourcesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListDataSourcesRequest` list results. For multiple-page
@@ -54,17 +84,20 @@ public interface ListDataSourcesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java similarity index 72% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java index b08dbdd38178..b80b87ee41b3 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Returns list of supported data sources and their metadata.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse} */ -public final class ListDataSourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDataSourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) ListDataSourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDataSourcesResponse.newBuilder() to construct. private ListDataSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDataSourcesResponse() { dataSources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private ListDataSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDataSourcesResponse(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); } public static final int DATA_SOURCES_FIELD_NUMBER = 1; private java.util.List dataSources_; /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
@@ -63,6 +84,8 @@ public java.util.List getD return dataSources_; } /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
@@ -70,11 +93,13 @@ public java.util.List getD * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDataSourcesOrBuilderList() { return dataSources_; } /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
@@ -86,6 +111,8 @@ public int getDataSourcesCount() { return dataSources_.size(); } /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSources(int i return dataSources_.get(index); } /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
@@ -112,6 +141,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -120,6 +151,7 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,14 +160,15 @@ 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; } } /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -144,16 +177,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -162,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dataSources_.size(); i++) { output.writeMessage(1, dataSources_.get(i)); } @@ -191,8 +223,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataSources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataSources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +236,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.datatransfer.v1.ListDataSourcesResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other = + (com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) obj; - if (!getDataSourcesList() - .equals(other.getDataSourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDataSourcesList().equals(other.getDataSourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,129 +269,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse + 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.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse 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.datatransfer.v1.ListDataSourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse 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; } /** + * + * *
    * Returns list of supported data sources and their metadata.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse} */ - 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.datatransfer.v1.ListDataSourcesResponse) com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.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(); @@ -378,13 +417,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance(); } @@ -399,7 +439,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse result = + new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse(this); int from_bitField0_ = bitField0_; if (dataSourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -419,46 +460,50 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse buildPa 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.datatransfer.v1.ListDataSourcesResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance()) + return this; if (dataSourcesBuilder_ == null) { if (!other.dataSources_.isEmpty()) { if (dataSources_.isEmpty()) { @@ -477,9 +522,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListDataSourc dataSourcesBuilder_ = null; dataSources_ = other.dataSources_; bitField0_ = (bitField0_ & ~0x00000001); - dataSourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataSourcesFieldBuilder() : null; + dataSourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataSourcesFieldBuilder() + : null; } else { dataSourcesBuilder_.addAllMessages(other.dataSources_); } @@ -515,30 +561,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.datatransfer.v1.DataSource m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSource.parser(), - extensionRegistry); - if (dataSourcesBuilder_ == null) { - ensureDataSourcesIsMutable(); - dataSources_.add(m); - } else { - dataSourcesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.bigquery.datatransfer.v1.DataSource m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.DataSource.parser(), + extensionRegistry); + if (dataSourcesBuilder_ == null) { + ensureDataSourcesIsMutable(); + dataSources_.add(m); + } else { + dataSourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -548,28 +597,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List dataSources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDataSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataSources_ = new java.util.ArrayList(dataSources_); + dataSources_ = + new java.util.ArrayList( + dataSources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSource, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> dataSourcesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.DataSource, + com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> + dataSourcesBuilder_; /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - public java.util.List getDataSourcesList() { + public java.util.List + getDataSourcesList() { if (dataSourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataSources_); } else { @@ -577,6 +636,8 @@ public java.util.List getD } } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -591,6 +652,8 @@ public int getDataSourcesCount() { } } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -605,6 +668,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSources(int i } } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -626,6 +691,8 @@ public Builder setDataSources( return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -644,6 +711,8 @@ public Builder setDataSources( return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -664,6 +733,8 @@ public Builder addDataSources(com.google.cloud.bigquery.datatransfer.v1.DataSour return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -685,6 +756,8 @@ public Builder addDataSources( return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -703,6 +776,8 @@ public Builder addDataSources( return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -721,6 +796,8 @@ public Builder addDataSources( return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -731,8 +808,7 @@ public Builder addAllDataSources( java.lang.Iterable values) { if (dataSourcesBuilder_ == null) { ensureDataSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataSources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSources_); onChanged(); } else { dataSourcesBuilder_.addAllMessages(values); @@ -740,6 +816,8 @@ public Builder addAllDataSources( return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -757,6 +835,8 @@ public Builder clearDataSources() { return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -774,6 +854,8 @@ public Builder removeDataSources(int index) { return this; } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -785,6 +867,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder getDataSourc return getDataSourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -794,19 +878,22 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder getDataSourc public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBuilder( int index) { if (dataSourcesBuilder_ == null) { - return dataSources_.get(index); } else { + return dataSources_.get(index); + } else { return dataSourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - public java.util.List - getDataSourcesOrBuilderList() { + public java.util.List + getDataSourcesOrBuilderList() { if (dataSourcesBuilder_ != null) { return dataSourcesBuilder_.getMessageOrBuilderList(); } else { @@ -814,6 +901,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour } } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -821,10 +910,12 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSour * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourcesBuilder() { - return getDataSourcesFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); + return getDataSourcesFieldBuilder() + .addBuilder(com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
@@ -833,30 +924,36 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourc */ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourcesBuilder( int index) { - return getDataSourcesFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); + return getDataSourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()); } /** + * + * *
      * List of supported data sources and their transfer settings.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - public java.util.List - getDataSourcesBuilderList() { + public java.util.List + getDataSourcesBuilderList() { return getDataSourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSource, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.DataSource, + com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder> getDataSourcesFieldBuilder() { if (dataSourcesBuilder_ == null) { - dataSourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.DataSource, com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder>( - dataSources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + dataSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.DataSource, + com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder, + com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder>( + dataSources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dataSources_ = null; } return dataSourcesBuilder_; @@ -864,6 +961,8 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourc private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -872,13 +971,13 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder addDataSourc
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -887,6 +986,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -895,15 +996,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -911,6 +1011,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -919,20 +1021,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -941,15 +1045,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -958,23 +1065,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,41 +1091,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataSourcesResponse 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 ListDataSourcesResponse 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; @@ -1030,9 +1139,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java index f63cdcc83df5..f5ef7d291b48 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListDataSourcesResponseOrBuilder extends +public interface ListDataSourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - java.util.List - getDataSourcesList(); + java.util.List getDataSourcesList(); /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
@@ -25,6 +44,8 @@ public interface ListDataSourcesResponseOrBuilder extends */ com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSources(int index); /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
@@ -33,25 +54,30 @@ public interface ListDataSourcesResponseOrBuilder extends */ int getDataSourcesCount(); /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - java.util.List + java.util.List getDataSourcesOrBuilderList(); /** + * + * *
    * List of supported data sources and their transfer settings.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1; */ - com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBuilder( - int index); + com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBuilder(int index); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -60,10 +86,13 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBu
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -72,8 +101,8 @@ com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourcesOrBu
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java similarity index 69% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java index 8ad3e4020298..4b5f976315d0 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to list data transfers configured for a BigQuery project.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest} */ -public final class ListTransferConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTransferConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) ListTransferConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTransferConfigsRequest.newBuilder() to construct. private ListTransferConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTransferConfigsRequest() { parent_ = ""; dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,39 +45,45 @@ private ListTransferConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTransferConfigsRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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,31 +92,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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 { @@ -103,34 +129,42 @@ public java.lang.String getParent() { public static final int DATA_SOURCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList dataSourceIds_; /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList - getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { return dataSourceIds_; } /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -138,22 +172,26 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString - getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -163,6 +201,7 @@ public java.lang.String getDataSourceIds(int index) {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +210,15 @@ 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; } } /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -188,16 +228,15 @@ public java.lang.String getPageToken() {
    * 
* * 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 { @@ -208,11 +247,14 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +263,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +275,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_); } @@ -270,8 +312,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; @@ -281,21 +322,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.datatransfer.v1.ListTransferConfigsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getDataSourceIdsList() - .equals(other.getDataSourceIdsList())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other = + (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDataSourceIdsList().equals(other.getDataSourceIdsList())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,129 +361,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest + 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.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest 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.datatransfer.v1.ListTransferConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest 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; } /** + * + * *
    * A request to list data transfers configured for a BigQuery project.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest} */ - 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.datatransfer.v1.ListTransferConfigsRequest) com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.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(); @@ -461,14 +508,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + .getDefaultInstance(); } @java.lang.Override @@ -482,7 +531,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buil @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest result = + new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -500,46 +550,51 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buil 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.datatransfer.v1.ListTransferConfigsRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -587,33 +642,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDataSourceIdsIsMutable(); - dataSourceIds_.add(s); - break; - } // case 18 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataSourceIdsIsMutable(); + dataSourceIds_.add(s); + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -623,24 +683,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `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; @@ -649,22 +714,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `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 { @@ -672,101 +740,124 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The BigQuery project id for which transfer configs
      * should be returned: `projects/{project_id}` or
      * `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList dataSourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList dataSourceIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDataSourceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dataSourceIds_ = new com.google.protobuf.LazyStringArrayList(dataSourceIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @return A list containing the dataSourceIds. */ - public com.google.protobuf.ProtocolStringList - getDataSourceIdsList() { + public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { return dataSourceIds_.getUnmodifiableView(); } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @return The count of dataSourceIds. */ public int getDataSourceIdsCount() { return dataSourceIds_.size(); } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ @@ -774,80 +865,90 @@ public java.lang.String getDataSourceIds(int index) { return dataSourceIds_.get(index); } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - public com.google.protobuf.ByteString - getDataSourceIdsBytes(int index) { + public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { return dataSourceIds_.getByteString(index); } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @param index The index to set the value at. * @param value The dataSourceIds to set. * @return This builder for chaining. */ - public Builder setDataSourceIds( - int index, java.lang.String value) { + public Builder setDataSourceIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @param value The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIds( - java.lang.String value) { + public Builder addDataSourceIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDataSourceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); return this; } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @param values The dataSourceIds to add. * @return This builder for chaining. */ - public Builder addAllDataSourceIds( - java.lang.Iterable values) { + public Builder addAllDataSourceIds(java.lang.Iterable values) { ensureDataSourceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataSourceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSourceIds_); onChanged(); return this; } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @return This builder for chaining. */ public Builder clearDataSourceIds() { @@ -857,20 +958,22 @@ public Builder clearDataSourceIds() { return this; } /** + * + * *
      * When specified, only configurations of requested data sources are returned.
      * 
* * repeated string data_source_ids = 2; + * * @param value The bytes of the dataSourceIds to add. * @return This builder for chaining. */ - public Builder addDataSourceIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDataSourceIdsIsMutable(); dataSourceIds_.add(value); onChanged(); @@ -879,6 +982,8 @@ public Builder addDataSourceIdsBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -888,13 +993,13 @@ public Builder addDataSourceIdsBytes(
      * 
* * 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; @@ -903,6 +1008,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -912,15 +1019,14 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -928,6 +1034,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -937,20 +1045,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -960,15 +1070,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransfersRequest` list results. For multiple-page
@@ -978,28 +1091,31 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -1007,37 +1123,43 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1047,41 +1169,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferConfigsRequest 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 ListTransferConfigsRequest 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; @@ -1093,9 +1217,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java index d77254800f75..cd9eb75a89bf 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java @@ -1,78 +1,115 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferConfigsRequestOrBuilder extends +public interface ListTransferConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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. The BigQuery project id for which transfer configs
    * should be returned: `projects/{project_id}` or
    * `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(); /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @return A list containing the dataSourceIds. */ - java.util.List - getDataSourceIdsList(); + java.util.List getDataSourceIdsList(); /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @return The count of dataSourceIds. */ int getDataSourceIdsCount(); /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the element to return. * @return The dataSourceIds at the given index. */ java.lang.String getDataSourceIds(int index); /** + * + * *
    * When specified, only configurations of requested data sources are returned.
    * 
* * repeated string data_source_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the dataSourceIds at the given index. */ - com.google.protobuf.ByteString - getDataSourceIdsBytes(int index); + com.google.protobuf.ByteString getDataSourceIdsBytes(int index); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -82,10 +119,13 @@ public interface ListTransferConfigsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransfersRequest` list results. For multiple-page
@@ -95,17 +135,20 @@ public interface ListTransferConfigsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java similarity index 62% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java index 7a7e2a1fe40b..38757c402973 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * The returned list of pipelines in the project.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse} */ -public final class ListTransferConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTransferConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) ListTransferConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTransferConfigsResponse.newBuilder() to construct. private ListTransferConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTransferConfigsResponse() { transferConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,92 +44,116 @@ private ListTransferConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTransferConfigsResponse(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); } public static final int TRANSFER_CONFIGS_FIELD_NUMBER = 1; private java.util.List transferConfigs_; /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getTransferConfigsList() { + public java.util.List + getTransferConfigsList() { return transferConfigs_; } /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getTransferConfigsOrBuilderList() { return transferConfigs_; } /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getTransferConfigsCount() { return transferConfigs_.size(); } /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfigs(int index) { return transferConfigs_.get(index); } /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigsOrBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder + getTransferConfigsOrBuilder(int index) { return transferConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -120,6 +162,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,14 +171,15 @@ 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; } } /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -144,16 +188,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -162,6 +205,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transferConfigs_.size(); i++) { output.writeMessage(1, transferConfigs_.get(i)); } @@ -191,8 +234,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < transferConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transferConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transferConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +247,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.datatransfer.v1.ListTransferConfigsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other = + (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) obj; - if (!getTransferConfigsList() - .equals(other.getTransferConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTransferConfigsList().equals(other.getTransferConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,129 +280,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse + 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.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse 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.datatransfer.v1.ListTransferConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse 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 returned list of pipelines in the project.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse} */ - 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.datatransfer.v1.ListTransferConfigsResponse) com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.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(); @@ -378,14 +428,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -399,7 +451,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse bui @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse result = + new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse(this); int from_bitField0_ = bitField0_; if (transferConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -419,46 +472,51 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse bui 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.datatransfer.v1.ListTransferConfigsResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + .getDefaultInstance()) return this; if (transferConfigsBuilder_ == null) { if (!other.transferConfigs_.isEmpty()) { if (transferConfigs_.isEmpty()) { @@ -477,9 +535,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferC transferConfigsBuilder_ = null; transferConfigs_ = other.transferConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - transferConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransferConfigsFieldBuilder() : null; + transferConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTransferConfigsFieldBuilder() + : null; } else { transferConfigsBuilder_.addAllMessages(other.transferConfigs_); } @@ -515,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.datatransfer.v1.TransferConfig m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.parser(), - extensionRegistry); - if (transferConfigsBuilder_ == null) { - ensureTransferConfigsIsMutable(); - transferConfigs_.add(m); - } else { - transferConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.bigquery.datatransfer.v1.TransferConfig m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.parser(), + extensionRegistry); + if (transferConfigsBuilder_ == null) { + ensureTransferConfigsIsMutable(); + transferConfigs_.add(m); + } else { + transferConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -548,28 +610,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List transferConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + transferConfigs_ = java.util.Collections.emptyList(); + private void ensureTransferConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - transferConfigs_ = new java.util.ArrayList(transferConfigs_); + transferConfigs_ = + new java.util.ArrayList( + transferConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> transferConfigsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + transferConfigsBuilder_; /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getTransferConfigsList() { + public java.util.List + getTransferConfigsList() { if (transferConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(transferConfigs_); } else { @@ -577,11 +651,15 @@ public java.util.List } } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getTransferConfigsCount() { if (transferConfigsBuilder_ == null) { @@ -591,11 +669,15 @@ public int getTransferConfigsCount() { } } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfigs(int index) { if (transferConfigsBuilder_ == null) { @@ -605,11 +687,15 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi } } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTransferConfigs( int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { @@ -626,14 +712,19 @@ public Builder setTransferConfigs( return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTransferConfigs( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { if (transferConfigsBuilder_ == null) { ensureTransferConfigsIsMutable(); transferConfigs_.set(index, builderForValue.build()); @@ -644,13 +735,18 @@ public Builder setTransferConfigs( return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder addTransferConfigs( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -664,11 +760,15 @@ public Builder addTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.Tran return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferConfigs( int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { @@ -685,11 +785,15 @@ public Builder addTransferConfigs( return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferConfigs( com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { @@ -703,14 +807,19 @@ public Builder addTransferConfigs( return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferConfigs( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { if (transferConfigsBuilder_ == null) { ensureTransferConfigsIsMutable(); transferConfigs_.add(index, builderForValue.build()); @@ -721,18 +830,22 @@ public Builder addTransferConfigs( return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllTransferConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (transferConfigsBuilder_ == null) { ensureTransferConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transferConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferConfigs_); onChanged(); } else { transferConfigsBuilder_.addAllMessages(values); @@ -740,11 +853,15 @@ public Builder addAllTransferConfigs( return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTransferConfigs() { if (transferConfigsBuilder_ == null) { @@ -757,11 +874,15 @@ public Builder clearTransferConfigs() { return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeTransferConfigs(int index) { if (transferConfigsBuilder_ == null) { @@ -774,39 +895,53 @@ public Builder removeTransferConfigs(int index) { return this; } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder getTransferConfigsBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder + getTransferConfigsBuilder(int index) { return getTransferConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigsOrBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder + getTransferConfigsOrBuilder(int index) { if (transferConfigsBuilder_ == null) { - return transferConfigs_.get(index); } else { + return transferConfigs_.get(index); + } else { return transferConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTransferConfigsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + getTransferConfigsOrBuilderList() { if (transferConfigsBuilder_ != null) { return transferConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -814,45 +949,66 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran } } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder addTransferConfigsBuilder() { - return getTransferConfigsFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder + addTransferConfigsBuilder() { + return getTransferConfigsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder addTransferConfigsBuilder( - int index) { - return getTransferConfigsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder + addTransferConfigsBuilder(int index) { + return getTransferConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()); } /** + * + * *
      * Output only. The stored pipeline transfer configurations.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTransferConfigsBuilderList() { + public java.util.List + getTransferConfigsBuilderList() { return getTransferConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> getTransferConfigsFieldBuilder() { if (transferConfigsBuilder_ == null) { - transferConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( + transferConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( transferConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -864,6 +1020,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder addTrans private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -872,13 +1030,13 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder addTrans
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -887,6 +1045,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -895,15 +1055,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -911,6 +1070,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -919,20 +1080,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -941,15 +1104,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -958,23 +1124,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,41 +1150,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferConfigsResponse 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 ListTransferConfigsResponse 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; @@ -1030,9 +1198,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java index 2f8dac08da6c..240543423d9e 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponseOrBuilder.java @@ -1,57 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferConfigsResponseOrBuilder extends +public interface ListTransferConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getTransferConfigsList(); + java.util.List getTransferConfigsList(); /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfigs(int index); /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getTransferConfigsCount(); /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getTransferConfigsOrBuilderList(); /** + * + * *
    * Output only. The stored pipeline transfer configurations.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_configs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigsOrBuilder( int index); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -60,10 +97,13 @@ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferCon
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -72,8 +112,8 @@ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferCon
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java similarity index 65% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java index b8cb4c4f0ab6..b86988729b37 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to get user facing log messages associated with data transfer run.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest} */ -public final class ListTransferLogsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTransferLogsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) ListTransferLogsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTransferLogsRequest.newBuilder() to construct. private ListTransferLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTransferLogsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,39 +45,45 @@ private ListTransferLogsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTransferLogsRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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,31 +92,33 @@ 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. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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 { @@ -103,6 +129,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -112,6 +140,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -120,14 +149,15 @@ 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; } } /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -137,16 +167,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @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 { @@ -157,11 +186,14 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_; /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -172,36 +204,58 @@ public int getPageSize() { public static final int MESSAGE_TYPES_FIELD_NUMBER = 6; private java.util.List messageTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity> messageTypes_converter_ = + java.lang.Integer, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity> + messageTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>() { - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity convert(java.lang.Integer from) { + java.lang.Integer, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>() { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity + convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(from); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf( + from); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity + .UNRECOGNIZED + : result; } }; /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return A list containing the messageTypes. */ @java.lang.Override - public java.util.List getMessageTypesList() { + public java.util.List + getMessageTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>(messageTypes_, messageTypes_converter_); + java.lang.Integer, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>( + messageTypes_, messageTypes_converter_); } /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return The count of messageTypes. */ @java.lang.Override @@ -209,40 +263,55 @@ public int getMessageTypesCount() { return messageTypes_.size(); } /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index of the element to return. * @return The messageTypes at the given index. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes( + int index) { return messageTypes_converter_.convert(messageTypes_.get(index)); } /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return A list containing the enum numeric values on the wire for messageTypes. */ @java.lang.Override - public java.util.List - getMessageTypesValueList() { + public java.util.List getMessageTypesValueList() { return messageTypes_; } /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of messageTypes at the given index. */ @@ -250,9 +319,11 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity public int getMessageTypesValue(int index) { return messageTypes_.get(index); } + private int messageTypesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +335,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -299,20 +369,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); } { int dataSize = 0; for (int i = 0; i < messageTypes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(messageTypes_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(messageTypes_.get(i)); } size += dataSize; - if (!getMessageTypesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }messageTypesMemoizedSerializedSize = dataSize; + if (!getMessageTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + messageTypesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,19 +392,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.datatransfer.v1.ListTransferLogsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other = + (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!messageTypes_.equals(other.messageTypes_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -363,129 +431,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest + 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.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest 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.datatransfer.v1.ListTransferLogsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest 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; } /** + * + * *
    * A request to get user facing log messages associated with data transfer run.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest} */ - 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.datatransfer.v1.ListTransferLogsRequest) com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.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(); @@ -501,13 +578,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance(); } @@ -522,7 +600,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest result = + new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.pageToken_ = pageToken_; @@ -540,46 +619,50 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest buildPa 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.datatransfer.v1.ListTransferLogsRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -627,44 +710,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 34: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 40: { - pageSize_ = input.readInt32(); + break; + } // case 34 + case 40: + { + pageSize_ = input.readInt32(); - break; - } // case 40 - case 48: { - int tmpRaw = input.readEnum(); - ensureMessageTypesIsMutable(); - messageTypes_.add(tmpRaw); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + break; + } // case 40 + case 48: + { int tmpRaw = input.readEnum(); ensureMessageTypesIsMutable(); messageTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 48 + case 50: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureMessageTypesIsMutable(); + messageTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 50 + 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) { @@ -674,24 +763,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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; @@ -700,22 +794,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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 { @@ -723,60 +820,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Transfer run name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -784,6 +894,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -793,13 +905,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 4; + * * @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; @@ -808,6 +920,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -817,15 +931,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @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 { @@ -833,6 +946,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -842,20 +957,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -865,15 +982,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferLogsRequest` list results. For multiple-page
@@ -883,28 +1003,31 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -912,37 +1035,43 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 5; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 5; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - private java.util.List messageTypes_ = - java.util.Collections.emptyList(); + private java.util.List messageTypes_ = java.util.Collections.emptyList(); + private void ensureMessageTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messageTypes_ = new java.util.ArrayList(messageTypes_); @@ -950,56 +1079,81 @@ private void ensureMessageTypesIsMutable() { } } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return A list containing the messageTypes. */ - public java.util.List getMessageTypesList() { + public java.util.List + getMessageTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>(messageTypes_, messageTypes_converter_); + java.lang.Integer, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>( + messageTypes_, messageTypes_converter_); } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return The count of messageTypes. */ public int getMessageTypesCount() { return messageTypes_.size(); } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index of the element to return. * @return The messageTypes at the given index. */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity + getMessageTypes(int index) { return messageTypes_converter_.convert(messageTypes_.get(index)); } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index to set the value at. * @param value The messageTypes to set. * @return This builder for chaining. */ public Builder setMessageTypes( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { + int index, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { if (value == null) { throw new NullPointerException(); } @@ -1009,16 +1163,22 @@ public Builder setMessageTypes( return this; } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param value The messageTypes to add. * @return This builder for chaining. */ - public Builder addMessageTypes(com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { + public Builder addMessageTypes( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { if (value == null) { throw new NullPointerException(); } @@ -1028,31 +1188,44 @@ public Builder addMessageTypes(com.google.cloud.bigquery.datatransfer.v1.Transfe return this; } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param values The messageTypes to add. * @return This builder for chaining. */ public Builder addAllMessageTypes( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity> + values) { ensureMessageTypesIsMutable(); - for (com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value : values) { + for (com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value : + values) { messageTypes_.add(value.getNumber()); } onChanged(); return this; } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return This builder for chaining. */ public Builder clearMessageTypes() { @@ -1062,25 +1235,34 @@ public Builder clearMessageTypes() { return this; } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return A list containing the enum numeric values on the wire for messageTypes. */ - public java.util.List - getMessageTypesValueList() { + public java.util.List getMessageTypesValueList() { return java.util.Collections.unmodifiableList(messageTypes_); } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of messageTypes at the given index. */ @@ -1088,30 +1270,39 @@ public int getMessageTypesValue(int index) { return messageTypes_.get(index); } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for messageTypes to set. * @return This builder for chaining. */ - public Builder setMessageTypesValue( - int index, int value) { + public Builder setMessageTypesValue(int index, int value) { ensureMessageTypesIsMutable(); messageTypes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param value The enum numeric value on the wire for messageTypes to add. * @return This builder for chaining. */ @@ -1122,17 +1313,21 @@ public Builder addMessageTypesValue(int value) { return this; } /** + * + * *
      * Message types to return. If not populated - INFO, WARNING and ERROR
      * messages are returned.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param values The enum numeric values on the wire for messageTypes to add. * @return This builder for chaining. */ - public Builder addAllMessageTypesValue( - java.lang.Iterable values) { + public Builder addAllMessageTypesValue(java.lang.Iterable values) { ensureMessageTypesIsMutable(); for (int value : values) { messageTypes_.add(value); @@ -1140,9 +1335,9 @@ public Builder addAllMessageTypesValue( 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); } @@ -1152,41 +1347,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferLogsRequest 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 ListTransferLogsRequest 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; @@ -1198,9 +1395,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java index 1479f6622381..f0ad9084fa7b 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferLogsRequestOrBuilder extends +public interface ListTransferLogsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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. Transfer run name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_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(); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -41,10 +68,13 @@ public interface ListTransferLogsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferLogsRequest` list results. For multiple-page
@@ -54,70 +84,99 @@ public interface ListTransferLogsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 5; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return A list containing the messageTypes. */ - java.util.List getMessageTypesList(); + java.util.List + getMessageTypesList(); /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return The count of messageTypes. */ int getMessageTypesCount(); /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index of the element to return. * @return The messageTypes at the given index. */ - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes(int index); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getMessageTypes( + int index); /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @return A list containing the enum numeric values on the wire for messageTypes. */ - java.util.List - getMessageTypesValueList(); + java.util.List getMessageTypesValueList(); /** + * + * *
    * Message types to return. If not populated - INFO, WARNING and ERROR
    * messages are returned.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity message_types = 6; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of messageTypes at the given index. */ diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java similarity index 62% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java index fd58b90fdf10..4c8fdaf47553 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * The returned list transfer run messages.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse} */ -public final class ListTransferLogsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTransferLogsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) ListTransferLogsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTransferLogsResponse.newBuilder() to construct. private ListTransferLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTransferLogsResponse() { transferMessages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,92 +44,118 @@ private ListTransferLogsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTransferLogsResponse(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); } public static final int TRANSFER_MESSAGES_FIELD_NUMBER = 1; - private java.util.List transferMessages_; + private java.util.List + transferMessages_; /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getTransferMessagesList() { + public java.util.List + getTransferMessagesList() { return transferMessages_; } /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> getTransferMessagesOrBuilderList() { return transferMessages_; } /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getTransferMessagesCount() { return transferMessages_.size(); } /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index) { return transferMessages_.get(index); } /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMessagesOrBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder + getTransferMessagesOrBuilder(int index) { return transferMessages_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -120,6 +164,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTra
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,14 +173,15 @@ 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; } } /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -144,16 +190,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -162,6 +207,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transferMessages_.size(); i++) { output.writeMessage(1, transferMessages_.get(i)); } @@ -191,8 +236,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < transferMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transferMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transferMessages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +249,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.datatransfer.v1.ListTransferLogsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other = + (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) obj; - if (!getTransferMessagesList() - .equals(other.getTransferMessagesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTransferMessagesList().equals(other.getTransferMessagesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,129 +282,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse + 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.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse 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.datatransfer.v1.ListTransferLogsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse 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 returned list transfer run messages.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse} */ - 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.datatransfer.v1.ListTransferLogsResponse) com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.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(); @@ -378,14 +430,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + .getDefaultInstance(); } @java.lang.Override @@ -399,7 +453,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse result = + new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse(this); int from_bitField0_ = bitField0_; if (transferMessagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -419,46 +474,51 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse buildP 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.datatransfer.v1.ListTransferLogsResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + .getDefaultInstance()) return this; if (transferMessagesBuilder_ == null) { if (!other.transferMessages_.isEmpty()) { if (transferMessages_.isEmpty()) { @@ -477,9 +537,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferL transferMessagesBuilder_ = null; transferMessages_ = other.transferMessages_; bitField0_ = (bitField0_ & ~0x00000001); - transferMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransferMessagesFieldBuilder() : null; + transferMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTransferMessagesFieldBuilder() + : null; } else { transferMessagesBuilder_.addAllMessages(other.transferMessages_); } @@ -515,30 +576,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.datatransfer.v1.TransferMessage m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.parser(), - extensionRegistry); - if (transferMessagesBuilder_ == null) { - ensureTransferMessagesIsMutable(); - transferMessages_.add(m); - } else { - transferMessagesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.bigquery.datatransfer.v1.TransferMessage m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.parser(), + extensionRegistry); + if (transferMessagesBuilder_ == null) { + ensureTransferMessagesIsMutable(); + transferMessages_.add(m); + } else { + transferMessagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -548,28 +612,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List transferMessages_ = - java.util.Collections.emptyList(); + private java.util.List + transferMessages_ = java.util.Collections.emptyList(); + private void ensureTransferMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - transferMessages_ = new java.util.ArrayList(transferMessages_); + transferMessages_ = + new java.util.ArrayList( + transferMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferMessage, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> transferMessagesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> + transferMessagesBuilder_; /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getTransferMessagesList() { + public java.util.List + getTransferMessagesList() { if (transferMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(transferMessages_); } else { @@ -577,11 +653,15 @@ public java.util.List } } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getTransferMessagesCount() { if (transferMessagesBuilder_ == null) { @@ -591,13 +671,18 @@ public int getTransferMessagesCount() { } } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages( + int index) { if (transferMessagesBuilder_ == null) { return transferMessages_.get(index); } else { @@ -605,11 +690,15 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMess } } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTransferMessages( int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { @@ -626,14 +715,19 @@ public Builder setTransferMessages( return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTransferMessages( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { if (transferMessagesBuilder_ == null) { ensureTransferMessagesIsMutable(); transferMessages_.set(index, builderForValue.build()); @@ -644,13 +738,18 @@ public Builder setTransferMessages( return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addTransferMessages(com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { + public Builder addTransferMessages( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { if (transferMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -664,11 +763,15 @@ public Builder addTransferMessages(com.google.cloud.bigquery.datatransfer.v1.Tra return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferMessages( int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) { @@ -685,11 +788,15 @@ public Builder addTransferMessages( return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferMessages( com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { @@ -703,14 +810,19 @@ public Builder addTransferMessages( return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferMessages( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { + int index, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) { if (transferMessagesBuilder_ == null) { ensureTransferMessagesIsMutable(); transferMessages_.add(index, builderForValue.build()); @@ -721,18 +833,22 @@ public Builder addTransferMessages( return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllTransferMessages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (transferMessagesBuilder_ == null) { ensureTransferMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transferMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferMessages_); onChanged(); } else { transferMessagesBuilder_.addAllMessages(values); @@ -740,11 +856,15 @@ public Builder addAllTransferMessages( return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTransferMessages() { if (transferMessagesBuilder_ == null) { @@ -757,11 +877,15 @@ public Builder clearTransferMessages() { return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeTransferMessages(int index) { if (transferMessagesBuilder_ == null) { @@ -774,39 +898,53 @@ public Builder removeTransferMessages(int index) { return this; } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder getTransferMessagesBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder + getTransferMessagesBuilder(int index) { return getTransferMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMessagesOrBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder + getTransferMessagesOrBuilder(int index) { if (transferMessagesBuilder_ == null) { - return transferMessages_.get(index); } else { + return transferMessages_.get(index); + } else { return transferMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTransferMessagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> + getTransferMessagesOrBuilderList() { if (transferMessagesBuilder_ != null) { return transferMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -814,45 +952,67 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTra } } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder addTransferMessagesBuilder() { - return getTransferMessagesFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder + addTransferMessagesBuilder() { + return getTransferMessagesFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder addTransferMessagesBuilder( - int index) { - return getTransferMessagesFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder + addTransferMessagesBuilder(int index) { + return getTransferMessagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()); } /** + * + * *
      * Output only. The stored pipeline transfer messages.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTransferMessagesBuilderList() { + public java.util.List + getTransferMessagesBuilderList() { return getTransferMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferMessage, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferMessage, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder> getTransferMessagesFieldBuilder() { if (transferMessagesBuilder_ == null) { - transferMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferMessage, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder>( + transferMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferMessage, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder>( transferMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -864,6 +1024,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder addTran private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -872,13 +1034,13 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder addTran
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -887,6 +1049,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -895,15 +1059,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -911,6 +1074,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -919,20 +1084,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -941,15 +1108,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -958,23 +1128,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,41 +1154,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferLogsResponse 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 ListTransferLogsResponse 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; @@ -1030,9 +1202,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java index 1026cf1a9a54..6fe5a15990e2 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponseOrBuilder.java @@ -1,57 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferLogsResponseOrBuilder extends +public interface ListTransferLogsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getTransferMessagesList(); /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index); /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getTransferMessagesCount(); /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getTransferMessagesOrBuilderList(); /** + * + * *
    * Output only. The stored pipeline transfer messages.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMessagesOrBuilder( int index); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -60,10 +98,13 @@ com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMe
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -72,8 +113,8 @@ com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMe
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java similarity index 69% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java index 5e96b3dc6dcb..d041b42ab524 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to list data transfer runs.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest} */ -public final class ListTransferRunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTransferRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) ListTransferRunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTransferRunsRequest.newBuilder() to construct. private ListTransferRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTransferRunsRequest() { parent_ = ""; states_ = java.util.Collections.emptyList(); @@ -28,39 +46,43 @@ private ListTransferRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTransferRunsRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); } /** + * + * *
    * Represents which runs should be pulled.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt} */ - public enum RunAttempt - implements com.google.protobuf.ProtocolMessageEnum { + public enum RunAttempt implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * All runs should be returned.
      * 
@@ -69,6 +91,8 @@ public enum RunAttempt */ RUN_ATTEMPT_UNSPECIFIED(0), /** + * + * *
      * Only latest run per day should be returned.
      * 
@@ -80,6 +104,8 @@ public enum RunAttempt ; /** + * + * *
      * All runs should be returned.
      * 
@@ -88,6 +114,8 @@ public enum RunAttempt */ public static final int RUN_ATTEMPT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Only latest run per day should be returned.
      * 
@@ -96,7 +124,6 @@ public enum RunAttempt */ public static final int LATEST_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -121,48 +148,49 @@ public static RunAttempt valueOf(int value) { */ public static RunAttempt forNumber(int value) { switch (value) { - case 0: return RUN_ATTEMPT_UNSPECIFIED; - case 1: return LATEST; - default: return null; + case 0: + return RUN_ATTEMPT_UNSPECIFIED; + case 1: + return LATEST; + 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< - RunAttempt> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RunAttempt findValueByNumber(int number) { - return RunAttempt.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 RunAttempt findValueByNumber(int number) { + return RunAttempt.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.datatransfer.v1.ListTransferRunsRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final RunAttempt[] VALUES = values(); - public static RunAttempt valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RunAttempt 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; @@ -182,6 +210,8 @@ private RunAttempt(int value) { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -189,7 +219,10 @@ private RunAttempt(int value) {
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 @@ -198,14 +231,15 @@ 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. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -213,17 +247,18 @@ public java.lang.String getParent() {
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 { @@ -234,34 +269,46 @@ public java.lang.String getParent() { public static final int STATES_FIELD_NUMBER = 2; private java.util.List states_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState> states_converter_ = + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState> + states_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>() { - public com.google.cloud.bigquery.datatransfer.v1.TransferState convert(java.lang.Integer from) { + public com.google.cloud.bigquery.datatransfer.v1.TransferState convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(from); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = + com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(from); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED + : result; } }; /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return A list containing the states. */ @java.lang.Override public java.util.List getStatesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>(states_, states_converter_); + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>( + states_, states_converter_); } /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return The count of states. */ @java.lang.Override @@ -269,11 +316,14 @@ public int getStatesCount() { return states_.size(); } /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index of the element to return. * @return The states at the given index. */ @@ -282,24 +332,29 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferState getStates(int ind return states_converter_.convert(states_.get(index)); } /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return A list containing the enum numeric values on the wire for states. */ @java.lang.Override - public java.util.List - getStatesValueList() { + public java.util.List getStatesValueList() { return states_; } /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of states at the given index. */ @@ -307,11 +362,14 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferState getStates(int ind public int getStatesValue(int index) { return states_.get(index); } + private int statesMemoizedSerializedSize; public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -321,6 +379,7 @@ public int getStatesValue(int index) {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -329,14 +388,15 @@ 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; } } /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -346,16 +406,15 @@ public java.lang.String getPageToken() {
    * 
* * 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 { @@ -366,11 +425,14 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -381,31 +443,49 @@ public int getPageSize() { public static final int RUN_ATTEMPT_FIELD_NUMBER = 5; private int runAttempt_; /** + * + * *
    * Indicates how run attempts are to be pulled.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @return The enum numeric value on the wire for runAttempt. */ - @java.lang.Override public int getRunAttemptValue() { + @java.lang.Override + public int getRunAttemptValue() { return runAttempt_; } /** + * + * *
    * Indicates how run attempts are to be pulled.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @return The runAttempt. */ - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt() { + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt + getRunAttempt() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf(runAttempt_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf( + runAttempt_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -417,8 +497,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -436,7 +515,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } - if (runAttempt_ != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.RUN_ATTEMPT_UNSPECIFIED.getNumber()) { + if (runAttempt_ + != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt + .RUN_ATTEMPT_UNSPECIFIED + .getNumber()) { output.writeEnum(5, runAttempt_); } getUnknownFields().writeTo(output); @@ -454,25 +536,26 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < states_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(states_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(states_.get(i)); } size += dataSize; - if (!getStatesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }statesMemoizedSerializedSize = dataSize; + if (!getStatesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + statesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { 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_); } - if (runAttempt_ != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.RUN_ATTEMPT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, runAttempt_); + if (runAttempt_ + != com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt + .RUN_ATTEMPT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, runAttempt_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -482,20 +565,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.datatransfer.v1.ListTransferRunsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other = + (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!states_.equals(other.states_)) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (runAttempt_ != other.runAttempt_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -526,129 +607,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest + 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.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest 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.datatransfer.v1.ListTransferRunsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest 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; } /** + * + * *
    * A request to list data transfer runs.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest} */ - 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.datatransfer.v1.ListTransferRunsRequest) com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.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(); @@ -666,13 +756,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance(); } @@ -687,7 +778,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest build() @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest result = + new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -706,46 +798,50 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest buildPa 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.datatransfer.v1.ListTransferRunsRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -796,49 +892,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - int tmpRaw = input.readEnum(); - ensureStatesIsMutable(); - states_.add(tmpRaw); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { int tmpRaw = input.readEnum(); ensureStatesIsMutable(); states_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - - break; - } // case 32 - case 40: { - runAttempt_ = input.readEnum(); - - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureStatesIsMutable(); + states_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 40: + { + runAttempt_ = input.readEnum(); + + break; + } // case 40 + 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) { @@ -848,10 +951,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -859,14 +965,16 @@ public Builder mergeFrom(
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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; @@ -875,6 +983,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -882,16 +992,17 @@ public java.lang.String getParent() {
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 { @@ -899,6 +1010,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -906,21 +1019,25 @@ public java.lang.String getParent() {
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -928,16 +1045,21 @@ public Builder setParent(
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of transfer configuration for which transfer runs should be retrieved.
      * Format of transfer configuration resource name is:
@@ -945,24 +1067,26 @@ public Builder clearParent() {
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private java.util.List states_ = - java.util.Collections.emptyList(); + private java.util.List states_ = java.util.Collections.emptyList(); + private void ensureStatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { states_ = new java.util.ArrayList(states_); @@ -970,34 +1094,44 @@ private void ensureStatesIsMutable() { } } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return A list containing the states. */ public java.util.List getStatesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>(states_, states_converter_); + java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>( + states_, states_converter_); } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return The count of states. */ public int getStatesCount() { return states_.size(); } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index of the element to return. * @return The states at the given index. */ @@ -1005,11 +1139,14 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferState getStates(int ind return states_converter_.convert(states_.get(index)); } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index to set the value at. * @param value The states to set. * @return This builder for chaining. @@ -1025,11 +1162,14 @@ public Builder setStates( return this; } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param value The states to add. * @return This builder for chaining. */ @@ -1043,16 +1183,20 @@ public Builder addStates(com.google.cloud.bigquery.datatransfer.v1.TransferState return this; } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param values The states to add. * @return This builder for chaining. */ public Builder addAllStates( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureStatesIsMutable(); for (com.google.cloud.bigquery.datatransfer.v1.TransferState value : values) { states_.add(value.getNumber()); @@ -1061,11 +1205,14 @@ public Builder addAllStates( return this; } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return This builder for chaining. */ public Builder clearStates() { @@ -1075,23 +1222,28 @@ public Builder clearStates() { return this; } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return A list containing the enum numeric values on the wire for states. */ - public java.util.List - getStatesValueList() { + public java.util.List getStatesValueList() { return java.util.Collections.unmodifiableList(states_); } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of states at the given index. */ @@ -1099,28 +1251,33 @@ public int getStatesValue(int index) { return states_.get(index); } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for states to set. * @return This builder for chaining. */ - public Builder setStatesValue( - int index, int value) { + public Builder setStatesValue(int index, int value) { ensureStatesIsMutable(); states_.set(index, value); onChanged(); return this; } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param value The enum numeric value on the wire for states to add. * @return This builder for chaining. */ @@ -1131,16 +1288,18 @@ public Builder addStatesValue(int value) { return this; } /** + * + * *
      * When specified, only transfer runs with requested states are returned.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param values The enum numeric values on the wire for states to add. * @return This builder for chaining. */ - public Builder addAllStatesValue( - java.lang.Iterable values) { + public Builder addAllStatesValue(java.lang.Iterable values) { ensureStatesIsMutable(); for (int value : values) { states_.add(value); @@ -1151,6 +1310,8 @@ public Builder addAllStatesValue( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1160,13 +1321,13 @@ public Builder addAllStatesValue(
      * 
* * 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; @@ -1175,6 +1336,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1184,15 +1347,14 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -1200,6 +1362,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1209,20 +1373,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1232,15 +1398,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Pagination token, which can be used to request a specific page
      * of `ListTransferRunsRequest` list results. For multiple-page
@@ -1250,28 +1419,31 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -1279,30 +1451,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Page size. The default page size is the maximum value of 1000 results.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1310,80 +1488,113 @@ public Builder clearPageSize() { private int runAttempt_ = 0; /** + * + * *
      * Indicates how run attempts are to be pulled.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @return The enum numeric value on the wire for runAttempt. */ - @java.lang.Override public int getRunAttemptValue() { + @java.lang.Override + public int getRunAttemptValue() { return runAttempt_; } /** + * + * *
      * Indicates how run attempts are to be pulled.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @param value The enum numeric value on the wire for runAttempt to set. * @return This builder for chaining. */ public Builder setRunAttemptValue(int value) { - + runAttempt_ = value; onChanged(); return this; } /** + * + * *
      * Indicates how run attempts are to be pulled.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @return The runAttempt. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt + getRunAttempt() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf(runAttempt_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf( + runAttempt_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt + .UNRECOGNIZED + : result; } /** + * + * *
      * Indicates how run attempts are to be pulled.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @param value The runAttempt to set. * @return This builder for chaining. */ - public Builder setRunAttempt(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt value) { + public Builder setRunAttempt( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt value) { if (value == null) { throw new NullPointerException(); } - + runAttempt_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates how run attempts are to be pulled.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @return This builder for chaining. */ public Builder clearRunAttempt() { - + runAttempt_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1393,41 +1604,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferRunsRequest 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 ListTransferRunsRequest 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; @@ -1439,9 +1652,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java index 0c0a598e7020..b199e947930b 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferRunsRequestOrBuilder extends +public interface ListTransferRunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -15,11 +33,16 @@ public interface ListTransferRunsRequestOrBuilder extends
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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. Name of transfer configuration for which transfer runs should be retrieved.
    * Format of transfer configuration resource name is:
@@ -27,62 +50,80 @@ public interface ListTransferRunsRequestOrBuilder extends
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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(); /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return A list containing the states. */ java.util.List getStatesList(); /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return The count of states. */ int getStatesCount(); /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index of the element to return. * @return The states at the given index. */ com.google.cloud.bigquery.datatransfer.v1.TransferState getStates(int index); /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @return A list containing the enum numeric values on the wire for states. */ - java.util.List - getStatesValueList(); + java.util.List getStatesValueList(); /** + * + * *
    * When specified, only transfer runs with requested states are returned.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of states at the given index. */ int getStatesValue(int index); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -92,10 +133,13 @@ public interface ListTransferRunsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Pagination token, which can be used to request a specific page
    * of `ListTransferRunsRequest` list results. For multiple-page
@@ -105,36 +149,49 @@ public interface ListTransferRunsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Page size. The default page size is the maximum value of 1000 results.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Indicates how run attempts are to be pulled.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @return The enum numeric value on the wire for runAttempt. */ int getRunAttemptValue(); /** + * + * *
    * Indicates how run attempts are to be pulled.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5; + * + * * @return The runAttempt. */ com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt(); diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java similarity index 63% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java index 433c170e5911..ecaed6f618a5 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * The returned list of pipelines in the project.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse} */ -public final class ListTransferRunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTransferRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) ListTransferRunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTransferRunsResponse.newBuilder() to construct. private ListTransferRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTransferRunsResponse() { transferRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,82 +44,104 @@ private ListTransferRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTransferRunsResponse(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); } public static final int TRANSFER_RUNS_FIELD_NUMBER = 1; private java.util.List transferRuns_; /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getTransferRunsList() { + public java.util.List + getTransferRunsList() { return transferRuns_; } /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getTransferRunsOrBuilderList() { return transferRuns_; } /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getTransferRunsCount() { return transferRuns_.size(); } /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int index) { return transferRuns_.get(index); } /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOrBuilder( @@ -112,6 +152,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransfe public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -120,6 +162,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransfe
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,14 +171,15 @@ 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; } } /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -144,16 +188,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -162,6 +205,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transferRuns_.size(); i++) { output.writeMessage(1, transferRuns_.get(i)); } @@ -191,8 +234,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < transferRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transferRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transferRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +247,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.datatransfer.v1.ListTransferRunsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other = + (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) obj; - if (!getTransferRunsList() - .equals(other.getTransferRunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTransferRunsList().equals(other.getTransferRunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,129 +280,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse + 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.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse 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.datatransfer.v1.ListTransferRunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse 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 returned list of pipelines in the project.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse} */ - 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.datatransfer.v1.ListTransferRunsResponse) com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.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(); @@ -378,14 +428,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + .getDefaultInstance(); } @java.lang.Override @@ -399,7 +451,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse build( @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse result = + new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse(this); int from_bitField0_ = bitField0_; if (transferRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -419,46 +472,51 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse buildP 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.datatransfer.v1.ListTransferRunsResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + .getDefaultInstance()) return this; if (transferRunsBuilder_ == null) { if (!other.transferRuns_.isEmpty()) { if (transferRuns_.isEmpty()) { @@ -477,9 +535,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferR transferRunsBuilder_ = null; transferRuns_ = other.transferRuns_; bitField0_ = (bitField0_ & ~0x00000001); - transferRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransferRunsFieldBuilder() : null; + transferRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTransferRunsFieldBuilder() + : null; } else { transferRunsBuilder_.addAllMessages(other.transferRuns_); } @@ -515,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.datatransfer.v1.TransferRun m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), - extensionRegistry); - if (transferRunsBuilder_ == null) { - ensureTransferRunsIsMutable(); - transferRuns_.add(m); - } else { - transferRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.bigquery.datatransfer.v1.TransferRun m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), + extensionRegistry); + if (transferRunsBuilder_ == null) { + ensureTransferRunsIsMutable(); + transferRuns_.add(m); + } else { + transferRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -548,28 +610,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List transferRuns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTransferRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - transferRuns_ = new java.util.ArrayList(transferRuns_); + transferRuns_ = + new java.util.ArrayList( + transferRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> transferRunsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + transferRunsBuilder_; /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getTransferRunsList() { + public java.util.List + getTransferRunsList() { if (transferRunsBuilder_ == null) { return java.util.Collections.unmodifiableList(transferRuns_); } else { @@ -577,11 +651,15 @@ public java.util.List get } } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getTransferRunsCount() { if (transferRunsBuilder_ == null) { @@ -591,11 +669,15 @@ public int getTransferRunsCount() { } } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int index) { if (transferRunsBuilder_ == null) { @@ -605,11 +687,15 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int } } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { @@ -626,11 +712,15 @@ public Builder setTransferRuns( return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder builderForValue) { @@ -644,11 +734,15 @@ public Builder setTransferRuns( return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferRuns(com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (transferRunsBuilder_ == null) { @@ -664,11 +758,15 @@ public Builder addTransferRuns(com.google.cloud.bigquery.datatransfer.v1.Transfe return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { @@ -685,11 +783,15 @@ public Builder addTransferRuns( return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferRuns( com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder builderForValue) { @@ -703,11 +805,15 @@ public Builder addTransferRuns( return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTransferRuns( int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder builderForValue) { @@ -721,18 +827,22 @@ public Builder addTransferRuns( return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllTransferRuns( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (transferRunsBuilder_ == null) { ensureTransferRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transferRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferRuns_); onChanged(); } else { transferRunsBuilder_.addAllMessages(values); @@ -740,11 +850,15 @@ public Builder addAllTransferRuns( return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTransferRuns() { if (transferRunsBuilder_ == null) { @@ -757,11 +871,15 @@ public Builder clearTransferRuns() { return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeTransferRuns(int index) { if (transferRunsBuilder_ == null) { @@ -774,39 +892,52 @@ public Builder removeTransferRuns(int index) { return this; } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getTransferRunsBuilder( int index) { return getTransferRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOrBuilder( int index) { if (transferRunsBuilder_ == null) { - return transferRuns_.get(index); } else { + return transferRuns_.get(index); + } else { return transferRunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTransferRunsOrBuilderList() { + public java.util.List + getTransferRunsOrBuilderList() { if (transferRunsBuilder_ != null) { return transferRunsBuilder_.getMessageOrBuilderList(); } else { @@ -814,49 +945,65 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransfe } } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransferRunsBuilder() { - return getTransferRunsFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getTransferRunsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransferRunsBuilder( int index) { - return getTransferRunsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getTransferRunsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** + * + * *
      * Output only. The stored pipeline transfer runs.
      * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTransferRunsBuilderList() { + public java.util.List + getTransferRunsBuilderList() { return getTransferRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> getTransferRunsFieldBuilder() { if (transferRunsBuilder_ == null) { - transferRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( - transferRuns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + transferRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( + transferRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transferRuns_ = null; } return transferRunsBuilder_; @@ -864,6 +1011,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransfer private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -872,13 +1021,13 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addTransfer
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -887,6 +1036,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -895,15 +1046,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -911,6 +1061,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -919,20 +1071,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -941,15 +1095,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Output only. The next-pagination token. For multiple-page list results,
      * this token can be used as the
@@ -958,23 +1115,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,41 +1141,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTransferRunsResponse 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 ListTransferRunsResponse 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; @@ -1030,9 +1189,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java similarity index 54% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java index 49765127fac9..c333984709d9 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponseOrBuilder.java @@ -1,57 +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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ListTransferRunsResponseOrBuilder extends +public interface ListTransferRunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getTransferRunsList(); + java.util.List getTransferRunsList(); /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRuns(int index); /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getTransferRunsCount(); /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getTransferRunsOrBuilderList(); /** + * + * *
    * Output only. The stored pipeline transfer runs.
    * 
* - * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun transfer_runs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOrBuilder( int index); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -60,10 +97,13 @@ com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOr
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. The next-pagination token. For multiple-page list results,
    * this token can be used as the
@@ -72,8 +112,8 @@ com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getTransferRunsOr
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java similarity index 76% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java index 9009d4d6104f..8a7021658b62 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptions.java @@ -1,55 +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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Options customizing the data transfer schedule.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleOptions} */ -public final class ScheduleOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScheduleOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ScheduleOptions) ScheduleOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScheduleOptions.newBuilder() to construct. private ScheduleOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScheduleOptions() { - } + + private ScheduleOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScheduleOptions(); } @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.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); } public static final int DISABLE_AUTO_SCHEDULING_FIELD_NUMBER = 3; private boolean disableAutoScheduling_; /** + * + * *
    * If true, automatic scheduling of data transfer runs for this configuration
    * will be disabled. The runs can be started on ad-hoc basis using
@@ -58,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * bool disable_auto_scheduling = 3; + * * @return The disableAutoScheduling. */ @java.lang.Override @@ -68,6 +89,8 @@ public boolean getDisableAutoScheduling() { public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -77,6 +100,7 @@ public boolean getDisableAutoScheduling() {
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -84,6 +108,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -93,6 +119,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -100,6 +127,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -118,6 +147,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp endTime_;
   /**
+   *
+   *
    * 
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -126,6 +157,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -133,6 +165,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -141,6 +175,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -148,6 +183,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -163,6 +200,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -174,8 +212,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 (startTime_ != null) {
       output.writeMessage(1, getStartTime());
     }
@@ -195,16 +232,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStartTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
     }
     if (disableAutoScheduling_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(3, disableAutoScheduling_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disableAutoScheduling_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -214,24 +248,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.datatransfer.v1.ScheduleOptions)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions other = (com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) obj;
+    com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions other =
+        (com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) obj;
 
-    if (getDisableAutoScheduling()
-        != other.getDisableAutoScheduling()) return false;
+    if (getDisableAutoScheduling() != other.getDisableAutoScheduling()) return false;
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime()
-          .equals(other.getStartTime())) return false;
+      if (!getStartTime().equals(other.getStartTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -245,8 +277,7 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + DISABLE_AUTO_SCHEDULING_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getDisableAutoScheduling());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAutoScheduling());
     if (hasStartTime()) {
       hash = (37 * hash) + START_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getStartTime().hashCode();
@@ -261,129 +292,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions 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.datatransfer.v1.ScheduleOptions prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions 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;
   }
   /**
+   *
+   *
    * 
    * Options customizing the data transfer schedule.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleOptions} */ - 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.datatransfer.v1.ScheduleOptions) com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.class, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.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(); @@ -405,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; } @java.lang.Override @@ -426,7 +464,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions(this); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions result = + new com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions(this); result.disableAutoScheduling_ = disableAutoScheduling_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -446,38 +485,39 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions) other); } else { super.mergeFrom(other); return this; @@ -485,7 +525,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance()) + return this; if (other.getDisableAutoScheduling() != false) { setDisableAutoScheduling(other.getDisableAutoScheduling()); } @@ -521,31 +562,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 24: { - disableAutoScheduling_ = input.readBool(); + break; + } // case 18 + case 24: + { + disableAutoScheduling_ = input.readBool(); - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + 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) { @@ -556,8 +597,10 @@ public Builder mergeFrom( return this; } - private boolean disableAutoScheduling_ ; + private boolean disableAutoScheduling_; /** + * + * *
      * If true, automatic scheduling of data transfer runs for this configuration
      * will be disabled. The runs can be started on ad-hoc basis using
@@ -566,6 +609,7 @@ public Builder mergeFrom(
      * 
* * bool disable_auto_scheduling = 3; + * * @return The disableAutoScheduling. */ @java.lang.Override @@ -573,6 +617,8 @@ public boolean getDisableAutoScheduling() { return disableAutoScheduling_; } /** + * + * *
      * If true, automatic scheduling of data transfer runs for this configuration
      * will be disabled. The runs can be started on ad-hoc basis using
@@ -581,16 +627,19 @@ public boolean getDisableAutoScheduling() {
      * 
* * bool disable_auto_scheduling = 3; + * * @param value The disableAutoScheduling to set. * @return This builder for chaining. */ public Builder setDisableAutoScheduling(boolean value) { - + disableAutoScheduling_ = value; onChanged(); return this; } /** + * + * *
      * If true, automatic scheduling of data transfer runs for this configuration
      * will be disabled. The runs can be started on ad-hoc basis using
@@ -599,10 +648,11 @@ public Builder setDisableAutoScheduling(boolean value) {
      * 
* * bool disable_auto_scheduling = 3; + * * @return This builder for chaining. */ public Builder clearDisableAutoScheduling() { - + disableAutoScheduling_ = false; onChanged(); return this; @@ -610,8 +660,13 @@ public Builder clearDisableAutoScheduling() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -621,12 +676,15 @@ public Builder clearDisableAutoScheduling() {
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -636,6 +694,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -646,6 +705,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -670,6 +731,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -680,8 +743,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -692,6 +754,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -706,7 +770,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -718,6 +782,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -740,6 +806,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -751,11 +819,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -770,11 +840,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies time to start scheduling transfer runs. The first run will be
      * scheduled at or after the start time according to a recurrence pattern
@@ -786,14 +857,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -801,8 +875,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        endTimeBuilder_;
     /**
+     *
+     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -811,12 +890,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -825,6 +907,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -835,6 +918,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -858,6 +943,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -867,8 +954,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -879,6 +965,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -892,7 +980,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -904,6 +992,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -925,6 +1015,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -935,11 +1027,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -953,11 +1047,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Defines time to stop scheduling transfer runs. A transfer run cannot be
      * scheduled at or after the end time. The end time can be changed at any
@@ -968,21 +1063,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @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 +1090,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ScheduleOptions)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleOptions)
   private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions();
   }
@@ -1006,27 +1104,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ScheduleOptions 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 ScheduleOptions 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 +1139,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
index a3fe3f843226..00e752beafcf 100644
--- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.java
+++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleOptionsOrBuilder.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/datatransfer/v1/transfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
-public interface ScheduleOptionsOrBuilder extends
+public interface ScheduleOptionsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ScheduleOptions)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If true, automatic scheduling of data transfer runs for this configuration
    * will be disabled. The runs can be started on ad-hoc basis using
@@ -16,11 +34,14 @@ public interface ScheduleOptionsOrBuilder extends
    * 
* * bool disable_auto_scheduling = 3; + * * @return The disableAutoScheduling. */ boolean getDisableAutoScheduling(); /** + * + * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -30,10 +51,13 @@ public interface ScheduleOptionsOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -43,10 +67,13 @@ public interface ScheduleOptionsOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Specifies time to start scheduling transfer runs. The first run will be
    * scheduled at or after the start time according to a recurrence pattern
@@ -60,6 +87,8 @@ public interface ScheduleOptionsOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -68,10 +97,13 @@ public interface ScheduleOptionsOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
@@ -80,10 +112,13 @@ public interface ScheduleOptionsOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Defines time to stop scheduling transfer runs. A transfer run cannot be
    * scheduled at or after the end time. The end time can be changed at any
diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
similarity index 67%
rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
index 1022d43b5fbe..d218de745c34 100644
--- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
+++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java
@@ -1,63 +1,87 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
+ *
+ *
  * 
  * A request to schedule transfer runs for a time range.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest} */ -public final class ScheduleTransferRunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScheduleTransferRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) ScheduleTransferRunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScheduleTransferRunsRequest.newBuilder() to construct. private ScheduleTransferRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ScheduleTransferRunsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScheduleTransferRunsRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 @@ -66,31 +90,33 @@ 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. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 { @@ -101,12 +127,16 @@ public java.lang.String getParent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -114,12 +144,16 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ @java.lang.Override @@ -127,12 +161,15 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -142,12 +179,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -155,12 +195,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The endTime. */ @java.lang.Override @@ -168,6 +211,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
@@ -181,6 +226,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -192,8 +238,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_);
     }
@@ -216,12 +261,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getStartTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -231,24 +274,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.datatransfer.v1.ScheduleTransferRunsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other = (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) obj;
+    com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other =
+        (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
+    if (!getParent().equals(other.getParent())) return false;
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime()
-          .equals(other.getStartTime())) return false;
+      if (!getStartTime().equals(other.getStartTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -277,129 +318,138 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest
+      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.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest 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.datatransfer.v1.ScheduleTransferRunsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest 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;
   }
   /**
+   *
+   *
    * 
    * A request to schedule transfer runs for a time range.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest} */ - 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.datatransfer.v1.ScheduleTransferRunsRequest) com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.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(); @@ -421,14 +471,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest + .getDefaultInstance(); } @java.lang.Override @@ -442,7 +494,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest bui @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest result = + new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest(this); result.parent_ = parent_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -462,46 +515,51 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest bui 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.datatransfer.v1.ScheduleTransferRunsRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -538,31 +596,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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,20 +633,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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; @@ -597,22 +659,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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 { @@ -620,60 +685,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
      * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -681,26 +759,37 @@ public Builder setParentBytes( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -711,12 +800,15 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -732,15 +824,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -751,18 +845,21 @@ public Builder setStartTime( return this; } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -774,12 +871,15 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -793,51 +893,62 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Required. Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -845,26 +956,37 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -875,12 +997,15 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -896,15 +1021,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -915,18 +1042,21 @@ public Builder setEndTime( return this; } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -938,12 +1068,15 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -957,58 +1090,69 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Required. End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } + @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); } @@ -1018,41 +1162,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScheduleTransferRunsRequest 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 ScheduleTransferRunsRequest 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; @@ -1064,9 +1210,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java index 7354580d5300..8ba1245e6a8e 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java @@ -1,87 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ScheduleTransferRunsRequestOrBuilder extends +public interface ScheduleTransferRunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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. Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
    * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Required. Start time of the range of transfer runs. For example,
    * `"2017-05-25T00:00:00+00:00"`.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
    * 
* * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Required. End time of the range of transfer runs. For example,
    * `"2017-05-30T00:00:00+00:00"`.
diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
similarity index 68%
rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
index 6088e635d59a..14d4c1903d18 100644
--- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
+++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java
@@ -1,56 +1,77 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
+ *
+ *
  * 
  * A response to schedule transfer runs for a time range.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse} */ -public final class ScheduleTransferRunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScheduleTransferRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) ScheduleTransferRunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScheduleTransferRunsResponse.newBuilder() to construct. private ScheduleTransferRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ScheduleTransferRunsResponse() { runs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScheduleTransferRunsResponse(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); } public static final int RUNS_FIELD_NUMBER = 1; private java.util.List runs_; /** + * + * *
    * The transfer runs that were scheduled.
    * 
@@ -62,6 +83,8 @@ public java.util.List get return runs_; } /** + * + * *
    * The transfer runs that were scheduled.
    * 
@@ -69,11 +92,13 @@ public java.util.List get * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRunsOrBuilderList() { return runs_; } /** + * + * *
    * The transfer runs that were scheduled.
    * 
@@ -85,6 +110,8 @@ public int getRunsCount() { return runs_.size(); } /** + * + * *
    * The transfer runs that were scheduled.
    * 
@@ -96,6 +123,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) return runs_.get(index); } /** + * + * *
    * The transfer runs that were scheduled.
    * 
@@ -109,6 +138,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +150,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runs_.size(); i++) { output.writeMessage(1, runs_.get(i)); } @@ -135,8 +164,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +174,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.datatransfer.v1.ScheduleTransferRunsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other = (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other = + (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) obj; - if (!getRunsList() - .equals(other.getRunsList())) return false; + if (!getRunsList().equals(other.getRunsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,129 +204,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse + 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.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse 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.datatransfer.v1.ScheduleTransferRunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse 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; } /** + * + * *
    * A response to schedule transfer runs for a time range.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse} */ - 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.datatransfer.v1.ScheduleTransferRunsResponse) com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.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(); @@ -313,19 +350,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse build() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -334,7 +374,8 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse bu @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse(this); + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = + new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse(this); int from_bitField0_ = bitField0_; if (runsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,46 +394,51 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse bu 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.datatransfer.v1.ScheduleTransferRunsResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + .getDefaultInstance()) return this; if (runsBuilder_ == null) { if (!other.runs_.isEmpty()) { if (runs_.isEmpty()) { @@ -411,9 +457,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleTrans runsBuilder_ = null; runs_ = other.runs_; bitField0_ = (bitField0_ & ~0x00000001); - runsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRunsFieldBuilder() : null; + runsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRunsFieldBuilder() + : null; } else { runsBuilder_.addAllMessages(other.runs_); } @@ -445,25 +492,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.datatransfer.v1.TransferRun m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), - extensionRegistry); - if (runsBuilder_ == null) { - ensureRunsIsMutable(); - runs_.add(m); - } else { - runsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.datatransfer.v1.TransferRun m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), + extensionRegistry); + if (runsBuilder_ == null) { + ensureRunsIsMutable(); + runs_.add(m); + } else { + runsBuilder_.addMessage(m); + } + 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) { @@ -473,21 +522,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List runs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runs_ = new java.util.ArrayList(runs_); + runs_ = + new java.util.ArrayList(runs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> runsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + runsBuilder_; /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -502,6 +559,8 @@ public java.util.List get } } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -516,6 +575,8 @@ public int getRunsCount() { } } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -530,14 +591,15 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) } } /** + * + * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder setRuns( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder setRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +613,8 @@ public Builder setRuns( return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -569,6 +633,8 @@ public Builder setRuns( return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -589,14 +655,15 @@ public Builder addRuns(com.google.cloud.bigquery.datatransfer.v1.TransferRun val return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder addRuns( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder addRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,6 +677,8 @@ public Builder addRuns( return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -628,6 +697,8 @@ public Builder addRuns( return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -646,6 +717,8 @@ public Builder addRuns( return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -653,11 +726,11 @@ public Builder addRuns( * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public Builder addAllRuns( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (runsBuilder_ == null) { ensureRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runs_); onChanged(); } else { runsBuilder_.addAllMessages(values); @@ -665,6 +738,8 @@ public Builder addAllRuns( return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -682,6 +757,8 @@ public Builder clearRuns() { return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -699,17 +776,20 @@ public Builder removeRuns(int index) { return this; } /** + * + * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder(int index) { return getRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -719,19 +799,22 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuil public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( int index) { if (runsBuilder_ == null) { - return runs_.get(index); } else { + return runs_.get(index); + } else { return runsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsOrBuilderList() { + public java.util.List + getRunsOrBuilderList() { if (runsBuilder_ != null) { return runsBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +822,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } } /** + * + * *
      * The transfer runs that were scheduled.
      * 
@@ -746,49 +831,56 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder() { - return getRunsFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getRunsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** + * + * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder( - int index) { - return getRunsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder(int index) { + return getRunsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** + * + * *
      * The transfer runs that were scheduled.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsBuilderList() { + public java.util.List + getRunsBuilderList() { return getRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> getRunsFieldBuilder() { if (runsBuilder_ == null) { - runsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( - runs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + runsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( + runs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runs_ = null; } return runsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,41 +890,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScheduleTransferRunsResponse 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 ScheduleTransferRunsResponse 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; @@ -844,9 +938,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java index 7377b4671083..1fe6660c2e9d 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface ScheduleTransferRunsResponseOrBuilder extends +public interface ScheduleTransferRunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The transfer runs that were scheduled.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List - getRunsList(); + java.util.List getRunsList(); /** + * + * *
    * The transfer runs that were scheduled.
    * 
@@ -25,6 +44,8 @@ public interface ScheduleTransferRunsResponseOrBuilder extends */ com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index); /** + * + * *
    * The transfer runs that were scheduled.
    * 
@@ -33,21 +54,24 @@ public interface ScheduleTransferRunsResponseOrBuilder extends */ int getRunsCount(); /** + * + * *
    * The transfer runs that were scheduled.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List + java.util.List getRunsOrBuilderList(); /** + * + * *
    * The transfer runs that were scheduled.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( - int index); + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder(int index); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java similarity index 66% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java index 3d9cb946239a..9ac68ad626e1 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java @@ -1,58 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * A request to start manual transfer runs.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest} */ -public final class StartManualTransferRunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartManualTransferRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) StartManualTransferRunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartManualTransferRunsRequest.newBuilder() to construct. - private StartManualTransferRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StartManualTransferRunsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartManualTransferRunsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartManualTransferRunsRequest(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder.class); } - public interface TimeRangeOrBuilder extends + public interface TimeRangeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -61,10 +84,13 @@ public interface TimeRangeOrBuilder extends
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -73,10 +99,13 @@ public interface TimeRangeOrBuilder extends
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -89,6 +118,8 @@ public interface TimeRangeOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -97,10 +128,13 @@ public interface TimeRangeOrBuilder extends
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -109,10 +143,13 @@ public interface TimeRangeOrBuilder extends
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -125,53 +162,61 @@ public interface TimeRangeOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
   }
   /**
+   *
+   *
    * 
    * A specification for a time range, this will request transfer runs with
    * run_time between start_time (inclusive) and end_time (exclusive).
    * 
* - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} + * Protobuf type {@code + * google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} */ - public static final class TimeRange extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TimeRange extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) TimeRangeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeRange.newBuilder() to construct. private TimeRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimeRange() { - } + + private TimeRange() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeRange(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .class, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -180,6 +225,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -187,6 +233,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -195,6 +243,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -202,6 +251,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
      * Start time of the range of transfer runs. For example,
      * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -219,6 +270,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     public static final int END_TIME_FIELD_NUMBER = 2;
     private com.google.protobuf.Timestamp endTime_;
     /**
+     *
+     *
      * 
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -227,6 +280,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -234,6 +288,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -242,6 +298,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -249,6 +306,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
      * End time of the range of transfer runs. For example,
      * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -264,6 +323,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -275,8 +335,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 (startTime_ != null) {
         output.writeMessage(1, getStartTime());
       }
@@ -293,12 +352,10 @@ public int getSerializedSize() {
 
       size = 0;
       if (startTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getStartTime());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
       }
       if (endTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getEndTime());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -308,22 +365,23 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)) {
+      if (!(obj
+          instanceof
+          com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange other = (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) obj;
+      com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange other =
+          (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) obj;
 
       if (hasStartTime() != other.hasStartTime()) return false;
       if (hasStartTime()) {
-        if (!getStartTime()
-            .equals(other.getStartTime())) return false;
+        if (!getStartTime().equals(other.getStartTime())) return false;
       }
       if (hasEndTime() != other.hasEndTime()) return false;
       if (hasEndTime()) {
-        if (!getEndTime()
-            .equals(other.getEndTime())) return false;
+        if (!getEndTime().equals(other.getEndTime())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -349,88 +407,102 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+            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
@@ -440,40 +512,47 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * A specification for a time range, this will request transfer runs with
      * run_time between start_time (inclusive) and end_time (exclusive).
      * 
* - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} + * Protobuf type {@code + * google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange} */ - 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .class, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .Builder.class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.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(); @@ -493,19 +572,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange build() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = buildPartial(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + build() { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -513,8 +596,11 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest. } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange(this); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + buildPartial() { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange result = + new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange( + this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -533,46 +619,57 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest. 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.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)other); + if (other + instanceof + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) { + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -605,26 +702,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -637,8 +733,13 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -647,12 +748,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -661,16 +765,21 @@ public boolean hasStartTime() {
        * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** + * + * *
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -694,6 +803,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -703,8 +814,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp start_time = 1;
        */
-      public Builder setStartTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (startTimeBuilder_ == null) {
           startTime_ = builderForValue.build();
           onChanged();
@@ -715,6 +825,8 @@ public Builder setStartTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -728,7 +840,9 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         if (startTimeBuilder_ == null) {
           if (startTime_ != null) {
             startTime_ =
-              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Timestamp.newBuilder(startTime_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             startTime_ = value;
           }
@@ -740,6 +854,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -761,6 +877,8 @@ public Builder clearStartTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -771,11 +889,13 @@ public Builder clearStartTime() {
        * .google.protobuf.Timestamp start_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-        
+
         onChanged();
         return getStartTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -789,11 +909,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         if (startTimeBuilder_ != null) {
           return startTimeBuilder_.getMessageOrBuilder();
         } else {
-          return startTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+          return startTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : startTime_;
         }
       }
       /**
+       *
+       *
        * 
        * Start time of the range of transfer runs. For example,
        * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
@@ -804,14 +927,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * .google.protobuf.Timestamp start_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getStartTimeFieldBuilder() {
         if (startTimeBuilder_ == null) {
-          startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getStartTime(),
-                  getParentForChildren(),
-                  isClean());
+          startTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getStartTime(), getParentForChildren(), isClean());
           startTime_ = null;
         }
         return startTimeBuilder_;
@@ -819,8 +945,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
       private com.google.protobuf.Timestamp endTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
+          endTimeBuilder_;
       /**
+       *
+       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -829,12 +960,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -843,6 +977,7 @@ public boolean hasEndTime() {
        * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -853,6 +988,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -876,6 +1013,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -885,8 +1024,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp end_time = 2;
        */
-      public Builder setEndTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (endTimeBuilder_ == null) {
           endTime_ = builderForValue.build();
           onChanged();
@@ -897,6 +1035,8 @@ public Builder setEndTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -910,7 +1050,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
         if (endTimeBuilder_ == null) {
           if (endTime_ != null) {
             endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
           } else {
             endTime_ = value;
           }
@@ -922,6 +1062,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -943,6 +1085,8 @@ public Builder clearEndTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -953,11 +1097,13 @@ public Builder clearEndTime() {
        * .google.protobuf.Timestamp end_time = 2;
        */
       public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-        
+
         onChanged();
         return getEndTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -971,11 +1117,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
         if (endTimeBuilder_ != null) {
           return endTimeBuilder_.getMessageOrBuilder();
         } else {
-          return endTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+          return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
         }
       }
       /**
+       *
+       *
        * 
        * End time of the range of transfer runs. For example,
        * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
@@ -986,18 +1133,22 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
        * .google.protobuf.Timestamp end_time = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getEndTimeFieldBuilder() {
         if (endTimeBuilder_ == null) {
-          endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getEndTime(),
-                  getParentForChildren(),
-                  isClean());
+          endTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getEndTime(), getParentForChildren(), isClean());
           endTime_ = null;
         }
         return endTimeBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1010,41 +1161,46 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
-    private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange DEFAULT_INSTANCE;
+    private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
+            .TimeRange
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange();
     }
 
-    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getDefaultInstance() {
+    public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public TimeRange 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 TimeRange 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;
@@ -1056,21 +1212,24 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int timeCase_ = 0;
   private java.lang.Object time_;
+
   public enum TimeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     REQUESTED_TIME_RANGE(3),
     REQUESTED_RUN_TIME(4),
     TIME_NOT_SET(0);
     private final int value;
+
     private TimeCase(int value) {
       this.value = value;
     }
@@ -1086,26 +1245,31 @@ public static TimeCase valueOf(int value) {
 
     public static TimeCase forNumber(int value) {
       switch (value) {
-        case 3: return REQUESTED_TIME_RANGE;
-        case 4: return REQUESTED_RUN_TIME;
-        case 0: return TIME_NOT_SET;
-        default: return null;
+        case 3:
+          return REQUESTED_TIME_RANGE;
+        case 4:
+          return REQUESTED_RUN_TIME;
+        case 0:
+          return TIME_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TimeCase
-  getTimeCase() {
-    return TimeCase.forNumber(
-        timeCase_);
+  public TimeCase getTimeCase() {
+    return TimeCase.forNumber(timeCase_);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1113,6 +1277,7 @@ public int getNumber() {
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -1121,14 +1286,15 @@ 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; } } /** + * + * *
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1136,16 +1302,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.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 { @@ -1155,11 +1320,16 @@ public java.lang.String getParent() { public static final int REQUESTED_TIME_RANGE_FIELD_NUMBER = 3; /** + * + * *
    * Time range for the transfer runs that should be started.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * * @return Whether the requestedTimeRange field is set. */ @java.lang.Override @@ -1167,43 +1337,61 @@ public boolean hasRequestedTimeRange() { return timeCase_ == 3; } /** + * + * *
    * Time range for the transfer runs that should be started.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * * @return The requestedTimeRange. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getRequestedTimeRange() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + getRequestedTimeRange() { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) + time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance(); } /** + * + * *
    * Time range for the transfer runs that should be started.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder getRequestedTimeRangeOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder + getRequestedTimeRangeOrBuilder() { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) + time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance(); } public static final int REQUESTED_RUN_TIME_FIELD_NUMBER = 4; /** + * + * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; + * * @return Whether the requestedRunTime field is set. */ @java.lang.Override @@ -1211,22 +1399,27 @@ public boolean hasRequestedRunTime() { return timeCase_ == 4; } /** + * + * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; + * * @return The requestedRunTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRequestedRunTime() { if (timeCase_ == 4) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
@@ -1237,12 +1430,13 @@ public com.google.protobuf.Timestamp getRequestedRunTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder() {
     if (timeCase_ == 4) {
-       return (com.google.protobuf.Timestamp) time_;
+      return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1254,13 +1448,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(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
     if (timeCase_ == 3) {
-      output.writeMessage(3, (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_);
+      output.writeMessage(
+          3,
+          (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
+              time_);
     }
     if (timeCase_ == 4) {
       output.writeMessage(4, (com.google.protobuf.Timestamp) time_);
@@ -1278,12 +1474,16 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (timeCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3,
+              (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange)
+                  time_);
     }
     if (timeCase_ == 4) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, (com.google.protobuf.Timestamp) time_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, (com.google.protobuf.Timestamp) time_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1293,24 +1493,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)) {
+    if (!(obj
+        instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other = (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) obj;
+    com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other =
+        (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
+    if (!getParent().equals(other.getParent())) return false;
     if (!getTimeCase().equals(other.getTimeCase())) return false;
     switch (timeCase_) {
       case 3:
-        if (!getRequestedTimeRange()
-            .equals(other.getRequestedTimeRange())) return false;
+        if (!getRequestedTimeRange().equals(other.getRequestedTimeRange())) return false;
         break;
       case 4:
-        if (!getRequestedRunTime()
-            .equals(other.getRequestedRunTime())) return false;
+        if (!getRequestedRunTime().equals(other.getRequestedRunTime())) return false;
         break;
       case 0:
       default:
@@ -1346,129 +1545,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest
+      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.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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;
   }
   /**
+   *
+   *
    * 
    * A request to start manual transfer runs.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest} */ - 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.datatransfer.v1.StartManualTransferRunsRequest) com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.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(); @@ -1486,19 +1695,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest build() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1507,7 +1719,8 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest(this); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest result = + new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest(this); result.parent_ = parent_; if (timeCase_ == 3) { if (requestedTimeRangeBuilder_ == null) { @@ -1532,62 +1745,71 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest 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.datatransfer.v1.StartManualTransferRunsRequest) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)other); + if (other + instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } switch (other.getTimeCase()) { - case REQUESTED_TIME_RANGE: { - mergeRequestedTimeRange(other.getRequestedTimeRange()); - break; - } - case REQUESTED_RUN_TIME: { - mergeRequestedRunTime(other.getRequestedRunTime()); - break; - } - case TIME_NOT_SET: { - break; - } + case REQUESTED_TIME_RANGE: + { + mergeRequestedTimeRange(other.getRequestedTimeRange()); + break; + } + case REQUESTED_RUN_TIME: + { + mergeRequestedRunTime(other.getRequestedRunTime()); + break; + } + case TIME_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1615,31 +1837,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 26: { - input.readMessage( - getRequestedTimeRangeFieldBuilder().getBuilder(), - extensionRegistry); - timeCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getRequestedRunTimeFieldBuilder().getBuilder(), - extensionRegistry); - timeCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 26: + { + input.readMessage( + getRequestedTimeRangeFieldBuilder().getBuilder(), extensionRegistry); + timeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getRequestedRunTimeFieldBuilder().getBuilder(), extensionRegistry); + timeCase_ = 4; + 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) { @@ -1649,12 +1873,12 @@ public Builder mergeFrom( } // finally return this; } + private int timeCase_ = 0; private java.lang.Object time_; - public TimeCase - getTimeCase() { - return TimeCase.forNumber( - timeCase_); + + public TimeCase getTimeCase() { + return TimeCase.forNumber(timeCase_); } public Builder clearTime() { @@ -1664,9 +1888,10 @@ public Builder clearTime() { return this; } - private java.lang.Object parent_ = ""; /** + * + * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1674,13 +1899,13 @@ public Builder clearTime() {
      * 
* * string parent = 1 [(.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; @@ -1689,6 +1914,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1696,15 +1923,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.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 { @@ -1712,6 +1938,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1719,20 +1947,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1740,15 +1970,18 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Transfer configuration name in the form:
      * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -1756,29 +1989,39 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder> requestedTimeRangeBuilder_; + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .Builder, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRangeOrBuilder> + requestedTimeRangeBuilder_; /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * * @return Whether the requestedTimeRange field is set. */ @java.lang.Override @@ -1786,35 +2029,50 @@ public boolean hasRequestedTimeRange() { return timeCase_ == 3; } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * * @return The requestedTimeRange. */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getRequestedTimeRange() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + getRequestedTimeRange() { if (requestedTimeRangeBuilder_ == null) { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRange) + time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance(); } else { if (timeCase_ == 3) { return requestedTimeRangeBuilder_.getMessage(); } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance(); } } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ - public Builder setRequestedTimeRange(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { + public Builder setRequestedTimeRange( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { if (requestedTimeRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1828,14 +2086,19 @@ public Builder setRequestedTimeRange(com.google.cloud.bigquery.datatransfer.v1.S return this; } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ public Builder setRequestedTimeRange( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder builderForValue) { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder + builderForValue) { if (requestedTimeRangeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); @@ -1846,18 +2109,31 @@ public Builder setRequestedTimeRange( return this; } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ - public Builder mergeRequestedTimeRange(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { + public Builder mergeRequestedTimeRange( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange value) { if (requestedTimeRangeBuilder_ == null) { - if (timeCase_ == 3 && - time_ != com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance()) { - time_ = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.newBuilder((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_) - .mergeFrom(value).buildPartial(); + if (timeCase_ == 3 + && time_ + != com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRange.getDefaultInstance()) { + time_ = + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .newBuilder( + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRange) + time_) + .mergeFrom(value) + .buildPartial(); } else { time_ = value; } @@ -1873,11 +2149,15 @@ public Builder mergeRequestedTimeRange(com.google.cloud.bigquery.datatransfer.v1 return this; } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ public Builder clearRequestedTimeRange() { if (requestedTimeRangeBuilder_ == null) { @@ -1896,68 +2176,106 @@ public Builder clearRequestedTimeRange() { return this; } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder getRequestedTimeRangeBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .Builder + getRequestedTimeRangeBuilder() { return getRequestedTimeRangeFieldBuilder().getBuilder(); } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder getRequestedTimeRangeOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRangeOrBuilder + getRequestedTimeRangeOrBuilder() { if ((timeCase_ == 3) && (requestedTimeRangeBuilder_ != null)) { return requestedTimeRangeBuilder_.getMessageOrBuilder(); } else { if (timeCase_ == 3) { - return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_; + return (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRange) + time_; } - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance(); } } /** + * + * *
      * Time range for the transfer runs that should be started.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .Builder, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRangeOrBuilder> getRequestedTimeRangeFieldBuilder() { if (requestedTimeRangeBuilder_ == null) { if (!(timeCase_ == 3)) { - time_ = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.getDefaultInstance(); + time_ = + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .getDefaultInstance(); } - requestedTimeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange.Builder, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder>( - (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) time_, + requestedTimeRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + .Builder, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest + .TimeRangeOrBuilder>( + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange) + time_, getParentForChildren(), isClean()); time_ = null; } timeCase_ = 3; - onChanged();; + onChanged(); + ; return requestedTimeRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> requestedRunTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + requestedRunTimeBuilder_; /** + * + * *
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
      * 
* * .google.protobuf.Timestamp requested_run_time = 4; + * * @return Whether the requestedRunTime field is set. */ @java.lang.Override @@ -1965,12 +2283,15 @@ public boolean hasRequestedRunTime() { return timeCase_ == 4; } /** + * + * *
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
      * 
* * .google.protobuf.Timestamp requested_run_time = 4; + * * @return The requestedRunTime. */ @java.lang.Override @@ -1988,6 +2309,8 @@ public com.google.protobuf.Timestamp getRequestedRunTime() { } } /** + * + * *
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2009,6 +2332,8 @@ public Builder setRequestedRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2016,8 +2341,7 @@ public Builder setRequestedRunTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp requested_run_time = 4;
      */
-    public Builder setRequestedRunTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setRequestedRunTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (requestedRunTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -2028,6 +2352,8 @@ public Builder setRequestedRunTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2037,10 +2363,11 @@ public Builder setRequestedRunTime(
      */
     public Builder mergeRequestedRunTime(com.google.protobuf.Timestamp value) {
       if (requestedRunTimeBuilder_ == null) {
-        if (timeCase_ == 4 &&
-            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-              .mergeFrom(value).buildPartial();
+        if (timeCase_ == 4 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           time_ = value;
         }
@@ -2056,6 +2383,8 @@ public Builder mergeRequestedRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2080,6 +2409,8 @@ public Builder clearRequestedRunTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2091,6 +2422,8 @@ public com.google.protobuf.Timestamp.Builder getRequestedRunTimeBuilder() {
       return getRequestedRunTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2110,6 +2443,8 @@ public com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Specific run_time for a transfer run to be started. The
      * requested_run_time must not be in the future.
@@ -2118,26 +2453,30 @@ public com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder() {
      * .google.protobuf.Timestamp requested_run_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getRequestedRunTimeFieldBuilder() {
       if (requestedRunTimeBuilder_ == null) {
         if (!(timeCase_ == 4)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        requestedRunTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_,
-                getParentForChildren(),
-                isClean());
+        requestedRunTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
         time_ = null;
       }
       timeCase_ = 4;
-      onChanged();;
+      onChanged();
+      ;
       return requestedRunTimeBuilder_;
     }
+
     @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);
     }
 
@@ -2147,41 +2486,44 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)
-  private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
+      DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest();
+    DEFAULT_INSTANCE =
+        new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest();
   }
 
-  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest getDefaultInstance() {
+  public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StartManualTransferRunsRequest 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 StartManualTransferRunsRequest 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;
@@ -2193,9 +2535,8 @@ public com.google.protobuf.Parser getParserForTy
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
index e3f549101d16..52c65cc03bb3 100644
--- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java
+++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
-public interface StartManualTransferRunsRequestOrBuilder extends
+public interface StartManualTransferRunsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -15,10 +33,13 @@ public interface StartManualTransferRunsRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Transfer configuration name in the form:
    * `projects/{project_id}/transferConfigs/{config_id}` or
@@ -26,59 +47,83 @@ public interface StartManualTransferRunsRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Time range for the transfer runs that should be started.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * * @return Whether the requestedTimeRange field is set. */ boolean hasRequestedTimeRange(); /** + * + * *
    * Time range for the transfer runs that should be started.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * * @return The requestedTimeRange. */ - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange getRequestedTimeRange(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange + getRequestedTimeRange(); /** + * + * *
    * Time range for the transfer runs that should be started.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * + * .google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange requested_time_range = 3; + * */ - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder getRequestedTimeRangeOrBuilder(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRangeOrBuilder + getRequestedTimeRangeOrBuilder(); /** + * + * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; + * * @return Whether the requestedRunTime field is set. */ boolean hasRequestedRunTime(); /** + * + * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
    * 
* * .google.protobuf.Timestamp requested_run_time = 4; + * * @return The requestedRunTime. */ com.google.protobuf.Timestamp getRequestedRunTime(); /** + * + * *
    * Specific run_time for a transfer run to be started. The
    * requested_run_time must not be in the future.
@@ -88,5 +133,6 @@ public interface StartManualTransferRunsRequestOrBuilder extends
    */
   com.google.protobuf.TimestampOrBuilder getRequestedRunTimeOrBuilder();
 
-  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeCase getTimeCase();
+  public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeCase
+      getTimeCase();
 }
diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
similarity index 66%
rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
index 1c56799dce5e..d11d99ef4256 100644
--- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
+++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponse.java
@@ -1,56 +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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
+ *
+ *
  * 
  * A response to start manual transfer runs.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse} */ -public final class StartManualTransferRunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartManualTransferRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) StartManualTransferRunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartManualTransferRunsResponse.newBuilder() to construct. - private StartManualTransferRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StartManualTransferRunsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartManualTransferRunsResponse() { runs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartManualTransferRunsResponse(); } @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder + .class); } public static final int RUNS_FIELD_NUMBER = 1; private java.util.List runs_; /** + * + * *
    * The transfer runs that were created.
    * 
@@ -62,6 +85,8 @@ public java.util.List get return runs_; } /** + * + * *
    * The transfer runs that were created.
    * 
@@ -69,11 +94,13 @@ public java.util.List get * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRunsOrBuilderList() { return runs_; } /** + * + * *
    * The transfer runs that were created.
    * 
@@ -85,6 +112,8 @@ public int getRunsCount() { return runs_.size(); } /** + * + * *
    * The transfer runs that were created.
    * 
@@ -96,6 +125,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) return runs_.get(index); } /** + * + * *
    * The transfer runs that were created.
    * 
@@ -109,6 +140,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +152,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runs_.size(); i++) { output.writeMessage(1, runs_.get(i)); } @@ -135,8 +166,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +176,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.datatransfer.v1.StartManualTransferRunsResponse)) { + if (!(obj + instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other = (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) obj; + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other = + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) obj; - if (!getRunsList() - .equals(other.getRunsList())) return false; + if (!getRunsList().equals(other.getRunsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,129 +207,139 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse + 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.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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; } /** + * + * *
    * A response to start manual transfer runs.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse} */ - 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.datatransfer.v1.StartManualTransferRunsResponse) com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.Builder + .class); } - // Construct using com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.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(); @@ -313,19 +354,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse build() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -333,8 +377,10 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(this); + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + buildPartial() { + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse result = + new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(this); int from_bitField0_ = bitField0_; if (runsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,46 +399,52 @@ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse 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.datatransfer.v1.StartManualTransferRunsResponse) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse)other); + if (other + instanceof com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + .getDefaultInstance()) return this; if (runsBuilder_ == null) { if (!other.runs_.isEmpty()) { if (runs_.isEmpty()) { @@ -411,9 +463,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.StartManualTr runsBuilder_ = null; runs_ = other.runs_; bitField0_ = (bitField0_ & ~0x00000001); - runsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRunsFieldBuilder() : null; + runsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRunsFieldBuilder() + : null; } else { runsBuilder_.addAllMessages(other.runs_); } @@ -445,25 +498,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.datatransfer.v1.TransferRun m = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), - extensionRegistry); - if (runsBuilder_ == null) { - ensureRunsIsMutable(); - runs_.add(m); - } else { - runsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.datatransfer.v1.TransferRun m = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), + extensionRegistry); + if (runsBuilder_ == null) { + ensureRunsIsMutable(); + runs_.add(m); + } else { + runsBuilder_.addMessage(m); + } + 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) { @@ -473,21 +528,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List runs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runs_ = new java.util.ArrayList(runs_); + runs_ = + new java.util.ArrayList(runs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> runsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + runsBuilder_; /** + * + * *
      * The transfer runs that were created.
      * 
@@ -502,6 +565,8 @@ public java.util.List get } } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -516,6 +581,8 @@ public int getRunsCount() { } } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -530,14 +597,15 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index) } } /** + * + * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder setRuns( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder setRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +619,8 @@ public Builder setRuns( return this; } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -569,6 +639,8 @@ public Builder setRuns( return this; } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -589,14 +661,15 @@ public Builder addRuns(com.google.cloud.bigquery.datatransfer.v1.TransferRun val return this; } /** + * + * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public Builder addRuns( - int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { + public Builder addRuns(int index, com.google.cloud.bigquery.datatransfer.v1.TransferRun value) { if (runsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,6 +683,8 @@ public Builder addRuns( return this; } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -628,6 +703,8 @@ public Builder addRuns( return this; } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -646,6 +723,8 @@ public Builder addRuns( return this; } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -653,11 +732,11 @@ public Builder addRuns( * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public Builder addAllRuns( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (runsBuilder_ == null) { ensureRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runs_); onChanged(); } else { runsBuilder_.addAllMessages(values); @@ -665,6 +744,8 @@ public Builder addAllRuns( return this; } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -682,6 +763,8 @@ public Builder clearRuns() { return this; } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -699,17 +782,20 @@ public Builder removeRuns(int index) { return this; } /** + * + * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder( - int index) { + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuilder(int index) { return getRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -719,19 +805,22 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder getRunsBuil public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( int index) { if (runsBuilder_ == null) { - return runs_.get(index); } else { + return runs_.get(index); + } else { return runsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsOrBuilderList() { + public java.util.List + getRunsOrBuilderList() { if (runsBuilder_ != null) { return runsBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +828,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } } /** + * + * *
      * The transfer runs that were created.
      * 
@@ -746,49 +837,56 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder() { - return getRunsFieldBuilder().addBuilder( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + return getRunsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** + * + * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder( - int index) { - return getRunsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuilder(int index) { + return getRunsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()); } /** + * + * *
      * The transfer runs that were created.
      * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - public java.util.List - getRunsBuilderList() { + public java.util.List + getRunsBuilderList() { return getRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder> getRunsFieldBuilder() { if (runsBuilder_ == null) { - runsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferRun, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( - runs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + runsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferRun, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder>( + runs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runs_ = null; } return runsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,41 +896,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) - private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse(); } - public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartManualTransferRunsResponse 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 StartManualTransferRunsResponse 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; @@ -844,9 +945,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java index 712d5762982d..45006e0903df 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface StartManualTransferRunsResponseOrBuilder extends +public interface StartManualTransferRunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The transfer runs that were created.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List - getRunsList(); + java.util.List getRunsList(); /** + * + * *
    * The transfer runs that were created.
    * 
@@ -25,6 +44,8 @@ public interface StartManualTransferRunsResponseOrBuilder extends */ com.google.cloud.bigquery.datatransfer.v1.TransferRun getRuns(int index); /** + * + * *
    * The transfer runs that were created.
    * 
@@ -33,21 +54,24 @@ public interface StartManualTransferRunsResponseOrBuilder extends */ int getRunsCount(); /** + * + * *
    * The transfer runs that were created.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - java.util.List + java.util.List getRunsOrBuilderList(); /** + * + * *
    * The transfer runs that were created.
    * 
* * repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1; */ - com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder( - int index); + com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrBuilder(int index); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java similarity index 73% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java index 044381732ef7..db3457066303 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Represents a data transfer configuration. A transfer configuration
  * contains all metadata needed to perform a data transfer. For example,
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferConfig}
  */
-public final class TransferConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TransferConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.TransferConfig)
     TransferConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TransferConfig.newBuilder() to construct.
   private TransferConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TransferConfig() {
     name_ = "";
     displayName_ = "";
@@ -36,38 +54,42 @@ private TransferConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TransferConfig();
   }
 
   @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.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class,
+            com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
   }
 
   private int bitField0_;
   private int destinationCase_ = 0;
   private java.lang.Object destination_;
+
   public enum DestinationCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     DESTINATION_DATASET_ID(2),
     DESTINATION_NOT_SET(0);
     private final int value;
+
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -83,25 +105,29 @@ public static DestinationCase valueOf(int value) {
 
     public static DestinationCase forNumber(int value) {
       switch (value) {
-        case 2: return DESTINATION_DATASET_ID;
-        case 0: return DESTINATION_NOT_SET;
-        default: return null;
+        case 2:
+          return DESTINATION_DATASET_ID;
+        case 0:
+          return DESTINATION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DestinationCase
-  getDestinationCase() {
-    return DestinationCase.forNumber(
-        destinationCase_);
+  public DestinationCase getDestinationCase() {
+    return DestinationCase.forNumber(destinationCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -112,6 +138,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -120,14 +147,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -138,16 +166,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -157,22 +184,28 @@ public java.lang.String getName() { public static final int DESTINATION_DATASET_ID_FIELD_NUMBER = 2; /** + * + * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; + * * @return Whether the destinationDatasetId field is set. */ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** + * + * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; + * * @return The destinationDatasetId. */ public java.lang.String getDestinationDatasetId() { @@ -183,8 +216,7 @@ public java.lang.String getDestinationDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -193,23 +225,24 @@ public java.lang.String getDestinationDatasetId() { } } /** + * + * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; + * * @return The bytes for destinationDatasetId. */ - public com.google.protobuf.ByteString - getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -222,11 +255,14 @@ public java.lang.String getDestinationDatasetId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** + * + * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -235,29 +271,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -268,6 +304,8 @@ public java.lang.String getDisplayName() { public static final int DATA_SOURCE_ID_FIELD_NUMBER = 5; private volatile java.lang.Object dataSourceId_; /** + * + * *
    * Data source ID. This cannot be changed once data transfer is created. The
    * full list of available data source IDs can be returned through an API call:
@@ -275,6 +313,7 @@ public java.lang.String getDisplayName() {
    * 
* * string data_source_id = 5; + * * @return The dataSourceId. */ @java.lang.Override @@ -283,14 +322,15 @@ public java.lang.String getDataSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; } } /** + * + * *
    * Data source ID. This cannot be changed once data transfer is created. The
    * full list of available data source IDs can be returned through an API call:
@@ -298,16 +338,15 @@ public java.lang.String getDataSourceId() {
    * 
* * string data_source_id = 5; + * * @return The bytes for dataSourceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataSourceIdBytes() { + public com.google.protobuf.ByteString getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -318,6 +357,8 @@ public java.lang.String getDataSourceId() { public static final int PARAMS_FIELD_NUMBER = 9; private com.google.protobuf.Struct params_; /** + * + * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -326,6 +367,7 @@ public java.lang.String getDataSourceId() {
    * 
* * .google.protobuf.Struct params = 9; + * * @return Whether the params field is set. */ @java.lang.Override @@ -333,6 +375,8 @@ public boolean hasParams() { return params_ != null; } /** + * + * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -341,6 +385,7 @@ public boolean hasParams() {
    * 
* * .google.protobuf.Struct params = 9; + * * @return The params. */ @java.lang.Override @@ -348,6 +393,8 @@ public com.google.protobuf.Struct getParams() { return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; } /** + * + * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -365,6 +412,8 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
   public static final int SCHEDULE_FIELD_NUMBER = 7;
   private volatile java.lang.Object schedule_;
   /**
+   *
+   *
    * 
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -382,6 +431,7 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
    * 
* * string schedule = 7; + * * @return The schedule. */ @java.lang.Override @@ -390,14 +440,15 @@ public java.lang.String getSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; } } /** + * + * *
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -415,16 +466,15 @@ public java.lang.String getSchedule() {
    * 
* * string schedule = 7; + * * @return The bytes for schedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getScheduleBytes() { + public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedule_ = b; return b; } else { @@ -435,11 +485,14 @@ public java.lang.String getSchedule() { public static final int SCHEDULE_OPTIONS_FIELD_NUMBER = 24; private com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions scheduleOptions_; /** + * + * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; + * * @return Whether the scheduleOptions field is set. */ @java.lang.Override @@ -447,18 +500,25 @@ public boolean hasScheduleOptions() { return scheduleOptions_ != null; } /** + * + * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; + * * @return The scheduleOptions. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOptions() { - return scheduleOptions_ == null ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() : scheduleOptions_; + return scheduleOptions_ == null + ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() + : scheduleOptions_; } /** + * + * *
    * Options customizing the data transfer schedule.
    * 
@@ -466,13 +526,16 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOpti * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getScheduleOptionsOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder + getScheduleOptionsOrBuilder() { return getScheduleOptions(); } public static final int DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER = 12; private int dataRefreshWindowDays_; /** + * + * *
    * The number of days to look back to automatically refresh the data.
    * For example, if `data_refresh_window_days = 10`, then every day
@@ -483,6 +546,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getSch
    * 
* * int32 data_refresh_window_days = 12; + * * @return The dataRefreshWindowDays. */ @java.lang.Override @@ -493,12 +557,15 @@ public int getDataRefreshWindowDays() { public static final int DISABLED_FIELD_NUMBER = 13; private boolean disabled_; /** + * + * *
    * Is this config disabled. When set to true, no runs are scheduled
    * for a given transfer.
    * 
* * bool disabled = 13; + * * @return The disabled. */ @java.lang.Override @@ -509,11 +576,15 @@ public boolean getDisabled() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -521,11 +592,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -533,11 +608,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -547,11 +625,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int NEXT_RUN_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp nextRunTime_; /** + * + * *
    * Output only. Next time when data transfer will run.
    * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextRunTime field is set. */ @java.lang.Override @@ -559,11 +642,16 @@ public boolean hasNextRunTime() { return nextRunTime_ != null; } /** + * + * *
    * Output only. Next time when data transfer will run.
    * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextRunTime. */ @java.lang.Override @@ -571,11 +659,15 @@ public com.google.protobuf.Timestamp getNextRunTime() { return nextRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRunTime_; } /** + * + * *
    * Output only. Next time when data transfer will run.
    * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { @@ -585,38 +677,56 @@ public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 10; private int state_; /** + * + * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = + com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED + : result; } public static final int USER_ID_FIELD_NUMBER = 11; private long userId_; /** + * + * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; + * * @return The userId. */ @java.lang.Override @@ -627,11 +737,14 @@ public long getUserId() { public static final int DATASET_REGION_FIELD_NUMBER = 14; private volatile java.lang.Object datasetRegion_; /** + * + * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The datasetRegion. */ @java.lang.Override @@ -640,29 +753,29 @@ public java.lang.String getDatasetRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetRegion_ = s; return s; } } /** + * + * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for datasetRegion. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetRegionBytes() { + public com.google.protobuf.ByteString getDatasetRegionBytes() { java.lang.Object ref = datasetRegion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetRegion_ = b; return b; } else { @@ -673,6 +786,8 @@ public java.lang.String getDatasetRegion() { public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER = 15; private volatile java.lang.Object notificationPubsubTopic_; /** + * + * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -681,6 +796,7 @@ public java.lang.String getDatasetRegion() {
    * 
* * string notification_pubsub_topic = 15; + * * @return The notificationPubsubTopic. */ @java.lang.Override @@ -689,14 +805,15 @@ public java.lang.String getNotificationPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; } } /** + * + * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -705,16 +822,15 @@ public java.lang.String getNotificationPubsubTopic() {
    * 
* * string notification_pubsub_topic = 15; + * * @return The bytes for notificationPubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -725,12 +841,15 @@ public java.lang.String getNotificationPubsubTopic() { public static final int EMAIL_PREFERENCES_FIELD_NUMBER = 18; private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; /** + * + * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + * * @return Whether the emailPreferences field is set. */ @java.lang.Override @@ -738,19 +857,26 @@ public boolean hasEmailPreferences() { return emailPreferences_ != null; } /** + * + * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + * * @return The emailPreferences. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { - return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; } /** + * + * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
@@ -759,20 +885,26 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPrefer
    * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() {
+  public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder
+      getEmailPreferencesOrBuilder() {
     return getEmailPreferences();
   }
 
   public static final int OWNER_INFO_FIELD_NUMBER = 27;
   private com.google.cloud.bigquery.datatransfer.v1.UserInfo ownerInfo_;
   /**
+   *
+   *
    * 
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the ownerInfo field is set. */ @java.lang.Override @@ -780,34 +912,48 @@ public boolean hasOwnerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The ownerInfo. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.UserInfo getOwnerInfo() { - return ownerInfo_ == null ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; + return ownerInfo_ == null + ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() + : ownerInfo_; } /** + * + * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder getOwnerInfoOrBuilder() { - return ownerInfo_ == null ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; + return ownerInfo_ == null + ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() + : ownerInfo_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -819,8 +965,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_); } @@ -845,7 +990,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (params_ != null) { output.writeMessage(9, getParams()); } - if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(10, state_); } if (userId_ != 0L) { @@ -891,8 +1038,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dataSourceId_); @@ -901,46 +1047,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, schedule_); } if (nextRunTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getNextRunTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNextRunTime()); } if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getParams()); } - if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + if (state_ + != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (userId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, userId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, userId_); } if (dataRefreshWindowDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, dataRefreshWindowDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, dataRefreshWindowDays_); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, disabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, disabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetRegion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, datasetRegion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationPubsubTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, notificationPubsubTopic_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(15, notificationPubsubTopic_); } if (emailPreferences_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getEmailPreferences()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getEmailPreferences()); } if (scheduleOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getScheduleOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getScheduleOptions()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getOwnerInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getOwnerInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -950,67 +1090,52 @@ 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.datatransfer.v1.TransferConfig)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.TransferConfig other = (com.google.cloud.bigquery.datatransfer.v1.TransferConfig) obj; + com.google.cloud.bigquery.datatransfer.v1.TransferConfig other = + (com.google.cloud.bigquery.datatransfer.v1.TransferConfig) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDataSourceId() - .equals(other.getDataSourceId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDataSourceId().equals(other.getDataSourceId())) return false; if (hasParams() != other.hasParams()) return false; if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; + if (!getParams().equals(other.getParams())) return false; } - if (!getSchedule() - .equals(other.getSchedule())) return false; + if (!getSchedule().equals(other.getSchedule())) return false; if (hasScheduleOptions() != other.hasScheduleOptions()) return false; if (hasScheduleOptions()) { - if (!getScheduleOptions() - .equals(other.getScheduleOptions())) return false; + if (!getScheduleOptions().equals(other.getScheduleOptions())) return false; } - if (getDataRefreshWindowDays() - != other.getDataRefreshWindowDays()) return false; - if (getDisabled() - != other.getDisabled()) return false; + if (getDataRefreshWindowDays() != other.getDataRefreshWindowDays()) return false; + if (getDisabled() != other.getDisabled()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasNextRunTime() != other.hasNextRunTime()) return false; if (hasNextRunTime()) { - if (!getNextRunTime() - .equals(other.getNextRunTime())) return false; + if (!getNextRunTime().equals(other.getNextRunTime())) return false; } if (state_ != other.state_) return false; - if (getUserId() - != other.getUserId()) return false; - if (!getDatasetRegion() - .equals(other.getDatasetRegion())) return false; - if (!getNotificationPubsubTopic() - .equals(other.getNotificationPubsubTopic())) return false; + if (getUserId() != other.getUserId()) return false; + if (!getDatasetRegion().equals(other.getDatasetRegion())) return false; + if (!getNotificationPubsubTopic().equals(other.getNotificationPubsubTopic())) return false; if (hasEmailPreferences() != other.hasEmailPreferences()) return false; if (hasEmailPreferences()) { - if (!getEmailPreferences() - .equals(other.getEmailPreferences())) return false; + if (!getEmailPreferences().equals(other.getEmailPreferences())) return false; } if (hasOwnerInfo() != other.hasOwnerInfo()) return false; if (hasOwnerInfo()) { - if (!getOwnerInfo() - .equals(other.getOwnerInfo())) return false; + if (!getOwnerInfo().equals(other.getOwnerInfo())) return false; } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: - if (!getDestinationDatasetId() - .equals(other.getDestinationDatasetId())) return false; + if (!getDestinationDatasetId().equals(other.getDestinationDatasetId())) return false; break; case 0: default: @@ -1045,8 +1170,7 @@ public int hashCode() { hash = (37 * hash) + DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER; hash = (53 * hash) + getDataRefreshWindowDays(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -1058,8 +1182,7 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + USER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); hash = (37 * hash) + DATASET_REGION_FIELD_NUMBER; hash = (53 * hash) + getDatasetRegion().hashCode(); hash = (37 * hash) + NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER; @@ -1086,96 +1209,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig 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.datatransfer.v1.TransferConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig 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; } /** + * + * *
    * Represents a data transfer configuration. A transfer configuration
    * contains all metadata needed to perform a data transfer. For example,
@@ -1187,21 +1318,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferConfig}
    */
-  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.datatransfer.v1.TransferConfig)
       com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class,
+              com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder()
@@ -1209,17 +1342,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getOwnerInfoFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1285,9 +1418,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.TransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1306,7 +1439,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.TransferConfig buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.TransferConfig result = new com.google.cloud.bigquery.datatransfer.v1.TransferConfig(this);
+      com.google.cloud.bigquery.datatransfer.v1.TransferConfig result =
+          new com.google.cloud.bigquery.datatransfer.v1.TransferConfig(this);
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       result.name_ = name_;
@@ -1365,38 +1499,39 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferConfig) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferConfig)other);
+        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1404,7 +1539,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferConfig other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1460,15 +1596,17 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferConfi
         mergeOwnerInfo(other.getOwnerInfo());
       }
       switch (other.getDestinationCase()) {
-        case DESTINATION_DATASET_ID: {
-          destinationCase_ = 2;
-          destination_ = other.destination_;
-          onChanged();
-          break;
-        }
-        case DESTINATION_NOT_SET: {
-          break;
-        }
+        case DESTINATION_DATASET_ID:
+          {
+            destinationCase_ = 2;
+            destination_ = other.destination_;
+            onChanged();
+            break;
+          }
+        case DESTINATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1496,110 +1634,117 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              destinationCase_ = 2;
-              destination_ = s;
-              break;
-            } // case 18
-            case 26: {
-              displayName_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                destinationCase_ = 2;
+                destination_ = s;
+                break;
+              } // case 18
+            case 26:
+              {
+                displayName_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 34
-            case 42: {
-              dataSourceId_ = input.readStringRequireUtf8();
+                break;
+              } // case 34
+            case 42:
+              {
+                dataSourceId_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 42
-            case 58: {
-              schedule_ = input.readStringRequireUtf8();
+                break;
+              } // case 42
+            case 58:
+              {
+                schedule_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getNextRunTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getNextRunTimeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getParamsFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getParamsFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 74
-            case 80: {
-              state_ = input.readEnum();
+                break;
+              } // case 74
+            case 80:
+              {
+                state_ = input.readEnum();
 
-              break;
-            } // case 80
-            case 88: {
-              userId_ = input.readInt64();
+                break;
+              } // case 80
+            case 88:
+              {
+                userId_ = input.readInt64();
 
-              break;
-            } // case 88
-            case 96: {
-              dataRefreshWindowDays_ = input.readInt32();
+                break;
+              } // case 88
+            case 96:
+              {
+                dataRefreshWindowDays_ = input.readInt32();
 
-              break;
-            } // case 96
-            case 104: {
-              disabled_ = input.readBool();
+                break;
+              } // case 96
+            case 104:
+              {
+                disabled_ = input.readBool();
 
-              break;
-            } // case 104
-            case 114: {
-              datasetRegion_ = input.readStringRequireUtf8();
+                break;
+              } // case 104
+            case 114:
+              {
+                datasetRegion_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 114
-            case 122: {
-              notificationPubsubTopic_ = input.readStringRequireUtf8();
+                break;
+              } // case 114
+            case 122:
+              {
+                notificationPubsubTopic_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 122
-            case 146: {
-              input.readMessage(
-                  getEmailPreferencesFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 122
+            case 146:
+              {
+                input.readMessage(
+                    getEmailPreferencesFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 146
-            case 194: {
-              input.readMessage(
-                  getScheduleOptionsFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 146
+            case 194:
+              {
+                input.readMessage(getScheduleOptionsFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 194
-            case 218: {
-              input.readMessage(
-                  getOwnerInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 218
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 194
+            case 218:
+              {
+                input.readMessage(getOwnerInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 218
+            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) {
@@ -1609,12 +1754,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-    public DestinationCase
-        getDestinationCase() {
-      return DestinationCase.forNumber(
-          destinationCase_);
+
+    public DestinationCase getDestinationCase() {
+      return DestinationCase.forNumber(destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1628,6 +1773,8 @@ public Builder clearDestination() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1638,13 +1785,13 @@ public Builder clearDestination() {
      * 
* * 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; @@ -1653,6 +1800,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1663,15 +1812,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1679,6 +1827,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1689,20 +1839,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1713,15 +1865,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1732,27 +1887,30 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } /** + * + * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; + * * @return Whether the destinationDatasetId field is set. */ @java.lang.Override @@ -1760,11 +1918,14 @@ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** + * + * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; + * * @return The destinationDatasetId. */ @java.lang.Override @@ -1774,8 +1935,7 @@ public java.lang.String getDestinationDatasetId() { ref = destination_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -1786,24 +1946,25 @@ public java.lang.String getDestinationDatasetId() { } } /** + * + * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; + * * @return The bytes for destinationDatasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -1813,30 +1974,35 @@ public java.lang.String getDestinationDatasetId() { } } /** + * + * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; + * * @param value The destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetId( - java.lang.String value) { + public Builder setDestinationDatasetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - destinationCase_ = 2; + throw new NullPointerException(); + } + destinationCase_ = 2; destination_ = value; onChanged(); return this; } /** + * + * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; + * * @return This builder for chaining. */ public Builder clearDestinationDatasetId() { @@ -1848,20 +2014,22 @@ public Builder clearDestinationDatasetId() { return this; } /** + * + * *
      * The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2; + * * @param value The bytes for destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDestinationDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); destinationCase_ = 2; destination_ = value; onChanged(); @@ -1870,18 +2038,20 @@ public Builder setDestinationDatasetIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1890,20 +2060,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1911,54 +2082,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * User specified display name for the data transfer.
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1966,6 +2144,8 @@ public Builder setDisplayNameBytes( private java.lang.Object dataSourceId_ = ""; /** + * + * *
      * Data source ID. This cannot be changed once data transfer is created. The
      * full list of available data source IDs can be returned through an API call:
@@ -1973,13 +2153,13 @@ public Builder setDisplayNameBytes(
      * 
* * string data_source_id = 5; + * * @return The dataSourceId. */ public java.lang.String getDataSourceId() { java.lang.Object ref = dataSourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; @@ -1988,6 +2168,8 @@ public java.lang.String getDataSourceId() { } } /** + * + * *
      * Data source ID. This cannot be changed once data transfer is created. The
      * full list of available data source IDs can be returned through an API call:
@@ -1995,15 +2177,14 @@ public java.lang.String getDataSourceId() {
      * 
* * string data_source_id = 5; + * * @return The bytes for dataSourceId. */ - public com.google.protobuf.ByteString - getDataSourceIdBytes() { + public com.google.protobuf.ByteString getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -2011,6 +2192,8 @@ public java.lang.String getDataSourceId() { } } /** + * + * *
      * Data source ID. This cannot be changed once data transfer is created. The
      * full list of available data source IDs can be returned through an API call:
@@ -2018,20 +2201,22 @@ public java.lang.String getDataSourceId() {
      * 
* * string data_source_id = 5; + * * @param value The dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceId( - java.lang.String value) { + public Builder setDataSourceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataSourceId_ = value; onChanged(); return this; } /** + * + * *
      * Data source ID. This cannot be changed once data transfer is created. The
      * full list of available data source IDs can be returned through an API call:
@@ -2039,15 +2224,18 @@ public Builder setDataSourceId(
      * 
* * string data_source_id = 5; + * * @return This builder for chaining. */ public Builder clearDataSourceId() { - + dataSourceId_ = getDefaultInstance().getDataSourceId(); onChanged(); return this; } /** + * + * *
      * Data source ID. This cannot be changed once data transfer is created. The
      * full list of available data source IDs can be returned through an API call:
@@ -2055,16 +2243,16 @@ public Builder clearDataSourceId() {
      * 
* * string data_source_id = 5; + * * @param value The bytes for dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceId_ = value; onChanged(); return this; @@ -2072,8 +2260,13 @@ public Builder setDataSourceIdBytes( private com.google.protobuf.Struct params_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> paramsBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + paramsBuilder_; /** + * + * *
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2082,12 +2275,15 @@ public Builder setDataSourceIdBytes(
      * 
* * .google.protobuf.Struct params = 9; + * * @return Whether the params field is set. */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** + * + * *
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2096,6 +2292,7 @@ public boolean hasParams() {
      * 
* * .google.protobuf.Struct params = 9; + * * @return The params. */ public com.google.protobuf.Struct getParams() { @@ -2106,6 +2303,8 @@ public com.google.protobuf.Struct getParams() { } } /** + * + * *
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2129,6 +2328,8 @@ public Builder setParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2138,8 +2339,7 @@ public Builder setParams(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct params = 9;
      */
-    public Builder setParams(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
       if (paramsBuilder_ == null) {
         params_ = builderForValue.build();
         onChanged();
@@ -2150,6 +2350,8 @@ public Builder setParams(
       return this;
     }
     /**
+     *
+     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2162,8 +2364,7 @@ public Builder setParams(
     public Builder mergeParams(com.google.protobuf.Struct value) {
       if (paramsBuilder_ == null) {
         if (params_ != null) {
-          params_ =
-            com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
+          params_ = com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
         } else {
           params_ = value;
         }
@@ -2175,6 +2376,8 @@ public Builder mergeParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2196,6 +2399,8 @@ public Builder clearParams() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2206,11 +2411,13 @@ public Builder clearParams() {
      * .google.protobuf.Struct params = 9;
      */
     public com.google.protobuf.Struct.Builder getParamsBuilder() {
-      
+
       onChanged();
       return getParamsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2224,11 +2431,12 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
       if (paramsBuilder_ != null) {
         return paramsBuilder_.getMessageOrBuilder();
       } else {
-        return params_ == null ?
-            com.google.protobuf.Struct.getDefaultInstance() : params_;
+        return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
       }
     }
     /**
+     *
+     *
      * 
      * Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2239,14 +2447,17 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
      * .google.protobuf.Struct params = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getParamsFieldBuilder() {
       if (paramsBuilder_ == null) {
-        paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                getParams(),
-                getParentForChildren(),
-                isClean());
+        paramsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                getParams(), getParentForChildren(), isClean());
         params_ = null;
       }
       return paramsBuilder_;
@@ -2254,6 +2465,8 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
 
     private java.lang.Object schedule_ = "";
     /**
+     *
+     *
      * 
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2271,13 +2484,13 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
      * 
* * string schedule = 7; + * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = schedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; @@ -2286,6 +2499,8 @@ public java.lang.String getSchedule() { } } /** + * + * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2303,15 +2518,14 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 7; + * * @return The bytes for schedule. */ - public com.google.protobuf.ByteString - getScheduleBytes() { + public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedule_ = b; return b; } else { @@ -2319,6 +2533,8 @@ public java.lang.String getSchedule() { } } /** + * + * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2336,20 +2552,22 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 7; + * * @param value The schedule to set. * @return This builder for chaining. */ - public Builder setSchedule( - java.lang.String value) { + public Builder setSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schedule_ = value; onChanged(); return this; } /** + * + * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2367,15 +2585,18 @@ public Builder setSchedule(
      * 
* * string schedule = 7; + * * @return This builder for chaining. */ public Builder clearSchedule() { - + schedule_ = getDefaultInstance().getSchedule(); onChanged(); return this; } /** + * + * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2393,16 +2614,16 @@ public Builder clearSchedule() {
      * 
* * string schedule = 7; + * * @param value The bytes for schedule to set. * @return This builder for chaining. */ - public Builder setScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schedule_ = value; onChanged(); return this; @@ -2410,41 +2631,55 @@ public Builder setScheduleBytes( private com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions scheduleOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> scheduleOptionsBuilder_; + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> + scheduleOptionsBuilder_; /** + * + * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; + * * @return Whether the scheduleOptions field is set. */ public boolean hasScheduleOptions() { return scheduleOptionsBuilder_ != null || scheduleOptions_ != null; } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; + * * @return The scheduleOptions. */ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOptions() { if (scheduleOptionsBuilder_ == null) { - return scheduleOptions_ == null ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() : scheduleOptions_; + return scheduleOptions_ == null + ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() + : scheduleOptions_; } else { return scheduleOptionsBuilder_.getMessage(); } } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public Builder setScheduleOptions(com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { + public Builder setScheduleOptions( + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { if (scheduleOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2458,6 +2693,8 @@ public Builder setScheduleOptions(com.google.cloud.bigquery.datatransfer.v1.Sche return this; } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
@@ -2476,17 +2713,22 @@ public Builder setScheduleOptions( return this; } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public Builder mergeScheduleOptions(com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { + public Builder mergeScheduleOptions( + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions value) { if (scheduleOptionsBuilder_ == null) { if (scheduleOptions_ != null) { scheduleOptions_ = - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.newBuilder(scheduleOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.newBuilder(scheduleOptions_) + .mergeFrom(value) + .buildPartial(); } else { scheduleOptions_ = value; } @@ -2498,6 +2740,8 @@ public Builder mergeScheduleOptions(com.google.cloud.bigquery.datatransfer.v1.Sc return this; } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
@@ -2516,33 +2760,42 @@ public Builder clearScheduleOptions() { return this; } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder getScheduleOptionsBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder + getScheduleOptionsBuilder() { + onChanged(); return getScheduleOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ - public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getScheduleOptionsOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder + getScheduleOptionsOrBuilder() { if (scheduleOptionsBuilder_ != null) { return scheduleOptionsBuilder_.getMessageOrBuilder(); } else { - return scheduleOptions_ == null ? - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() : scheduleOptions_; + return scheduleOptions_ == null + ? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance() + : scheduleOptions_; } } /** + * + * *
      * Options customizing the data transfer schedule.
      * 
@@ -2550,21 +2803,26 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getSch * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder> getScheduleOptionsFieldBuilder() { if (scheduleOptionsBuilder_ == null) { - scheduleOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder>( - getScheduleOptions(), - getParentForChildren(), - isClean()); + scheduleOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder, + com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder>( + getScheduleOptions(), getParentForChildren(), isClean()); scheduleOptions_ = null; } return scheduleOptionsBuilder_; } - private int dataRefreshWindowDays_ ; + private int dataRefreshWindowDays_; /** + * + * *
      * The number of days to look back to automatically refresh the data.
      * For example, if `data_refresh_window_days = 10`, then every day
@@ -2575,6 +2833,7 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getSch
      * 
* * int32 data_refresh_window_days = 12; + * * @return The dataRefreshWindowDays. */ @java.lang.Override @@ -2582,6 +2841,8 @@ public int getDataRefreshWindowDays() { return dataRefreshWindowDays_; } /** + * + * *
      * The number of days to look back to automatically refresh the data.
      * For example, if `data_refresh_window_days = 10`, then every day
@@ -2592,16 +2853,19 @@ public int getDataRefreshWindowDays() {
      * 
* * int32 data_refresh_window_days = 12; + * * @param value The dataRefreshWindowDays to set. * @return This builder for chaining. */ public Builder setDataRefreshWindowDays(int value) { - + dataRefreshWindowDays_ = value; onChanged(); return this; } /** + * + * *
      * The number of days to look back to automatically refresh the data.
      * For example, if `data_refresh_window_days = 10`, then every day
@@ -2612,23 +2876,27 @@ public Builder setDataRefreshWindowDays(int value) {
      * 
* * int32 data_refresh_window_days = 12; + * * @return This builder for chaining. */ public Builder clearDataRefreshWindowDays() { - + dataRefreshWindowDays_ = 0; onChanged(); return this; } - private boolean disabled_ ; + private boolean disabled_; /** + * + * *
      * Is this config disabled. When set to true, no runs are scheduled
      * for a given transfer.
      * 
* * bool disabled = 13; + * * @return The disabled. */ @java.lang.Override @@ -2636,32 +2904,38 @@ public boolean getDisabled() { return disabled_; } /** + * + * *
      * Is this config disabled. When set to true, no runs are scheduled
      * for a given transfer.
      * 
* * bool disabled = 13; + * * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { - + disabled_ = value; onChanged(); return this; } /** + * + * *
      * Is this config disabled. When set to true, no runs are scheduled
      * for a given transfer.
      * 
* * bool disabled = 13; + * * @return This builder for chaining. */ public Builder clearDisabled() { - + disabled_ = false; onChanged(); return this; @@ -2669,39 +2943,58 @@ public Builder clearDisabled() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2717,14 +3010,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2735,17 +3031,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2757,11 +3057,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2775,48 +3079,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Data transfer modification time. Ignored by server on input.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2824,39 +3144,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp nextRunTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRunTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextRunTimeBuilder_; /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextRunTime field is set. */ public boolean hasNextRunTime() { return nextRunTimeBuilder_ != null || nextRunTime_ != null; } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextRunTime. */ public com.google.protobuf.Timestamp getNextRunTime() { if (nextRunTimeBuilder_ == null) { - return nextRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRunTime_; + return nextRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRunTime_; } else { return nextRunTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNextRunTime(com.google.protobuf.Timestamp value) { if (nextRunTimeBuilder_ == null) { @@ -2872,14 +3211,17 @@ public Builder setNextRunTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNextRunTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRunTimeBuilder_ == null) { nextRunTime_ = builderForValue.build(); onChanged(); @@ -2890,17 +3232,23 @@ public Builder setNextRunTime( return this; } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeNextRunTime(com.google.protobuf.Timestamp value) { if (nextRunTimeBuilder_ == null) { if (nextRunTime_ != null) { nextRunTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRunTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRunTime_) + .mergeFrom(value) + .buildPartial(); } else { nextRunTime_ = value; } @@ -2912,11 +3260,15 @@ public Builder mergeNextRunTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNextRunTime() { if (nextRunTimeBuilder_ == null) { @@ -2930,48 +3282,64 @@ public Builder clearNextRunTime() { return this; } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getNextRunTimeBuilder() { - + onChanged(); return getNextRunTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { if (nextRunTimeBuilder_ != null) { return nextRunTimeBuilder_.getMessageOrBuilder(); } else { - return nextRunTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : nextRunTime_; + return nextRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRunTime_; } } /** + * + * *
      * Output only. Next time when data transfer will run.
      * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getNextRunTimeFieldBuilder() { if (nextRunTimeBuilder_ == null) { - nextRunTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getNextRunTime(), - getParentForChildren(), - isClean()); + nextRunTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextRunTime(), getParentForChildren(), isClean()); nextRunTime_ = null; } return nextRunTimeBuilder_; @@ -2979,51 +3347,75 @@ public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = + com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3031,33 +3423,41 @@ public Builder setState(com.google.cloud.bigquery.datatransfer.v1.TransferState if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. State of the most recently updated transfer run.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long userId_ ; + private long userId_; /** + * + * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; + * * @return The userId. */ @java.lang.Override @@ -3065,30 +3465,36 @@ public long getUserId() { return userId_; } /** + * + * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; + * * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId(long value) { - + userId_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; + * * @return This builder for chaining. */ public Builder clearUserId() { - + userId_ = 0L; onChanged(); return this; @@ -3096,18 +3502,20 @@ public Builder clearUserId() { private java.lang.Object datasetRegion_ = ""; /** + * + * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The datasetRegion. */ public java.lang.String getDatasetRegion() { java.lang.Object ref = datasetRegion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetRegion_ = s; return s; @@ -3116,20 +3524,21 @@ public java.lang.String getDatasetRegion() { } } /** + * + * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for datasetRegion. */ - public com.google.protobuf.ByteString - getDatasetRegionBytes() { + public com.google.protobuf.ByteString getDatasetRegionBytes() { java.lang.Object ref = datasetRegion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetRegion_ = b; return b; } else { @@ -3137,54 +3546,61 @@ public java.lang.String getDatasetRegion() { } } /** + * + * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The datasetRegion to set. * @return This builder for chaining. */ - public Builder setDatasetRegion( - java.lang.String value) { + public Builder setDatasetRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetRegion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDatasetRegion() { - + datasetRegion_ = getDefaultInstance().getDatasetRegion(); onChanged(); return this; } /** + * + * *
      * Output only. Region in which BigQuery dataset is located.
      * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for datasetRegion to set. * @return This builder for chaining. */ - public Builder setDatasetRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetRegion_ = value; onChanged(); return this; @@ -3192,6 +3608,8 @@ public Builder setDatasetRegionBytes( private java.lang.Object notificationPubsubTopic_ = ""; /** + * + * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3200,13 +3618,13 @@ public Builder setDatasetRegionBytes(
      * 
* * string notification_pubsub_topic = 15; + * * @return The notificationPubsubTopic. */ public java.lang.String getNotificationPubsubTopic() { java.lang.Object ref = notificationPubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; @@ -3215,6 +3633,8 @@ public java.lang.String getNotificationPubsubTopic() { } } /** + * + * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3223,15 +3643,14 @@ public java.lang.String getNotificationPubsubTopic() {
      * 
* * string notification_pubsub_topic = 15; + * * @return The bytes for notificationPubsubTopic. */ - public com.google.protobuf.ByteString - getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -3239,6 +3658,8 @@ public java.lang.String getNotificationPubsubTopic() { } } /** + * + * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3247,20 +3668,22 @@ public java.lang.String getNotificationPubsubTopic() {
      * 
* * string notification_pubsub_topic = 15; + * * @param value The notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopic( - java.lang.String value) { + public Builder setNotificationPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationPubsubTopic_ = value; onChanged(); return this; } /** + * + * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3269,15 +3692,18 @@ public Builder setNotificationPubsubTopic(
      * 
* * string notification_pubsub_topic = 15; + * * @return This builder for chaining. */ public Builder clearNotificationPubsubTopic() { - + notificationPubsubTopic_ = getDefaultInstance().getNotificationPubsubTopic(); onChanged(); return this; } /** + * + * *
      * Pub/Sub topic where notifications will be sent after transfer runs
      * associated with this transfer config finish.
@@ -3286,16 +3712,16 @@ public Builder clearNotificationPubsubTopic() {
      * 
* * string notification_pubsub_topic = 15; + * * @param value The bytes for notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationPubsubTopic_ = value; onChanged(); return this; @@ -3303,36 +3729,49 @@ public Builder setNotificationPubsubTopicBytes( private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> emailPreferencesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + emailPreferencesBuilder_; /** + * + * *
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
      * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + * * @return Whether the emailPreferences field is set. */ public boolean hasEmailPreferences() { return emailPreferencesBuilder_ != null || emailPreferences_ != null; } /** + * + * *
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
      * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + * * @return The emailPreferences. */ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { if (emailPreferencesBuilder_ == null) { - return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; } else { return emailPreferencesBuilder_.getMessage(); } } /** + * + * *
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3340,7 +3779,8 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPrefer
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public Builder setEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
+    public Builder setEmailPreferences(
+        com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
       if (emailPreferencesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3354,6 +3794,8 @@ public Builder setEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.Ema
       return this;
     }
     /**
+     *
+     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3373,6 +3815,8 @@ public Builder setEmailPreferences(
       return this;
     }
     /**
+     *
+     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3380,11 +3824,15 @@ public Builder setEmailPreferences(
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public Builder mergeEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
+    public Builder mergeEmailPreferences(
+        com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) {
       if (emailPreferencesBuilder_ == null) {
         if (emailPreferences_ != null) {
           emailPreferences_ =
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder(emailPreferences_).mergeFrom(value).buildPartial();
+              com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder(
+                      emailPreferences_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           emailPreferences_ = value;
         }
@@ -3396,6 +3844,8 @@ public Builder mergeEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.E
       return this;
     }
     /**
+     *
+     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3415,6 +3865,8 @@ public Builder clearEmailPreferences() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3422,12 +3874,15 @@ public Builder clearEmailPreferences() {
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder getEmailPreferencesBuilder() {
-      
+    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder
+        getEmailPreferencesBuilder() {
+
       onChanged();
       return getEmailPreferencesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3435,15 +3890,19 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder getEma
      *
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
-    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() {
+    public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder
+        getEmailPreferencesOrBuilder() {
       if (emailPreferencesBuilder_ != null) {
         return emailPreferencesBuilder_.getMessageOrBuilder();
       } else {
-        return emailPreferences_ == null ?
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_;
+        return emailPreferences_ == null
+            ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance()
+            : emailPreferences_;
       }
     }
     /**
+     *
+     *
      * 
      * Email notifications will be sent according to these preferences
      * to the email address of the user who owns this transfer config.
@@ -3452,14 +3911,17 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEm
      * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> 
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences,
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder,
+            com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>
         getEmailPreferencesFieldBuilder() {
       if (emailPreferencesBuilder_ == null) {
-        emailPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>(
-                getEmailPreferences(),
-                getParentForChildren(),
-                isClean());
+        emailPreferencesBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.datatransfer.v1.EmailPreferences,
+                com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder,
+                com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>(
+                getEmailPreferences(), getParentForChildren(), isClean());
         emailPreferences_ = null;
       }
       return emailPreferencesBuilder_;
@@ -3467,45 +3929,64 @@ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEm
 
     private com.google.cloud.bigquery.datatransfer.v1.UserInfo ownerInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.datatransfer.v1.UserInfo, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder> ownerInfoBuilder_;
+            com.google.cloud.bigquery.datatransfer.v1.UserInfo,
+            com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder,
+            com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder>
+        ownerInfoBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the ownerInfo field is set. */ public boolean hasOwnerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The ownerInfo. */ public com.google.cloud.bigquery.datatransfer.v1.UserInfo getOwnerInfo() { if (ownerInfoBuilder_ == null) { - return ownerInfo_ == null ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; + return ownerInfo_ == null + ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() + : ownerInfo_; } else { return ownerInfoBuilder_.getMessage(); } } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo value) { if (ownerInfoBuilder_ == null) { @@ -3521,13 +4002,17 @@ public Builder setOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo v return this; } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOwnerInfo( com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder builderForValue) { @@ -3541,21 +4026,28 @@ public Builder setOwnerInfo( return this; } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo value) { if (ownerInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - ownerInfo_ != null && - ownerInfo_ != com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && ownerInfo_ != null + && ownerInfo_ + != com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) { ownerInfo_ = - com.google.cloud.bigquery.datatransfer.v1.UserInfo.newBuilder(ownerInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.UserInfo.newBuilder(ownerInfo_) + .mergeFrom(value) + .buildPartial(); } else { ownerInfo_ = value; } @@ -3567,13 +4059,17 @@ public Builder mergeOwnerInfo(com.google.cloud.bigquery.datatransfer.v1.UserInfo return this; } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOwnerInfo() { if (ownerInfoBuilder_ == null) { @@ -3586,13 +4082,17 @@ public Builder clearOwnerInfo() { return this; } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder getOwnerInfoBuilder() { bitField0_ |= 0x00000001; @@ -3600,47 +4100,59 @@ public com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder getOwnerInfoBu return getOwnerInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder getOwnerInfoOrBuilder() { if (ownerInfoBuilder_ != null) { return ownerInfoBuilder_.getMessageOrBuilder(); } else { - return ownerInfo_ == null ? - com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() : ownerInfo_; + return ownerInfo_ == null + ? com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance() + : ownerInfo_; } } /** + * + * *
      * Output only. Information about the user whose credentials are used to transfer data.
      * Populated only for `transferConfigs.get` requests. In case the user
      * information is not available, this field will not be populated.
      * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.UserInfo, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.UserInfo, + com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, + com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder> getOwnerInfoFieldBuilder() { if (ownerInfoBuilder_ == null) { - ownerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.UserInfo, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder>( - getOwnerInfo(), - getParentForChildren(), - isClean()); + ownerInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.UserInfo, + com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder, + com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder>( + getOwnerInfo(), getParentForChildren(), isClean()); ownerInfo_ = null; } return ownerInfoBuilder_; } + @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); } @@ -3650,12 +4162,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.TransferConfig) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferConfig) private static final com.google.cloud.bigquery.datatransfer.v1.TransferConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.TransferConfig(); } @@ -3664,27 +4176,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferConfig 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 TransferConfig 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; @@ -3699,6 +4211,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java similarity index 81% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java index 873732d72c50..5594ff131211 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface TransferConfigOrBuilder extends +public interface TransferConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.TransferConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -18,10 +36,13 @@ public interface TransferConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the transfer config.
    * Transfer config names have the form
@@ -32,61 +53,76 @@ public interface TransferConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; + * * @return Whether the destinationDatasetId field is set. */ boolean hasDestinationDatasetId(); /** + * + * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; + * * @return The destinationDatasetId. */ java.lang.String getDestinationDatasetId(); /** + * + * *
    * The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2; + * * @return The bytes for destinationDatasetId. */ - com.google.protobuf.ByteString - getDestinationDatasetIdBytes(); + com.google.protobuf.ByteString getDestinationDatasetIdBytes(); /** + * + * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User specified display name for the data transfer.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Data source ID. This cannot be changed once data transfer is created. The
    * full list of available data source IDs can be returned through an API call:
@@ -94,10 +130,13 @@ public interface TransferConfigOrBuilder extends
    * 
* * string data_source_id = 5; + * * @return The dataSourceId. */ java.lang.String getDataSourceId(); /** + * + * *
    * Data source ID. This cannot be changed once data transfer is created. The
    * full list of available data source IDs can be returned through an API call:
@@ -105,12 +144,14 @@ public interface TransferConfigOrBuilder extends
    * 
* * string data_source_id = 5; + * * @return The bytes for dataSourceId. */ - com.google.protobuf.ByteString - getDataSourceIdBytes(); + com.google.protobuf.ByteString getDataSourceIdBytes(); /** + * + * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -119,10 +160,13 @@ public interface TransferConfigOrBuilder extends
    * 
* * .google.protobuf.Struct params = 9; + * * @return Whether the params field is set. */ boolean hasParams(); /** + * + * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -131,10 +175,13 @@ public interface TransferConfigOrBuilder extends
    * 
* * .google.protobuf.Struct params = 9; + * * @return The params. */ com.google.protobuf.Struct getParams(); /** + * + * *
    * Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -147,6 +194,8 @@ public interface TransferConfigOrBuilder extends
   com.google.protobuf.StructOrBuilder getParamsOrBuilder();
 
   /**
+   *
+   *
    * 
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -164,10 +213,13 @@ public interface TransferConfigOrBuilder extends
    * 
* * string schedule = 7; + * * @return The schedule. */ java.lang.String getSchedule(); /** + * + * *
    * Data transfer schedule.
    * If the data source does not support a custom schedule, this should be
@@ -185,30 +237,38 @@ public interface TransferConfigOrBuilder extends
    * 
* * string schedule = 7; + * * @return The bytes for schedule. */ - com.google.protobuf.ByteString - getScheduleBytes(); + com.google.protobuf.ByteString getScheduleBytes(); /** + * + * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; + * * @return Whether the scheduleOptions field is set. */ boolean hasScheduleOptions(); /** + * + * *
    * Options customizing the data transfer schedule.
    * 
* * .google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24; + * * @return The scheduleOptions. */ com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOptions(); /** + * + * *
    * Options customizing the data transfer schedule.
    * 
@@ -218,6 +278,8 @@ public interface TransferConfigOrBuilder extends com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder getScheduleOptionsOrBuilder(); /** + * + * *
    * The number of days to look back to automatically refresh the data.
    * For example, if `data_refresh_window_days = 10`, then every day
@@ -228,125 +290,174 @@ public interface TransferConfigOrBuilder extends
    * 
* * int32 data_refresh_window_days = 12; + * * @return The dataRefreshWindowDays. */ int getDataRefreshWindowDays(); /** + * + * *
    * Is this config disabled. When set to true, no runs are scheduled
    * for a given transfer.
    * 
* * bool disabled = 13; + * * @return The disabled. */ boolean getDisabled(); /** + * + * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Data transfer modification time. Ignored by server on input.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Next time when data transfer will run.
    * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextRunTime field is set. */ boolean hasNextRunTime(); /** + * + * *
    * Output only. Next time when data transfer will run.
    * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextRunTime. */ com.google.protobuf.Timestamp getNextRunTime(); /** + * + * *
    * Output only. Next time when data transfer will run.
    * 
* - * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder(); /** + * + * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the most recently updated transfer run.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.datatransfer.v1.TransferState getState(); /** + * + * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; + * * @return The userId. */ long getUserId(); /** + * + * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The datasetRegion. */ java.lang.String getDatasetRegion(); /** + * + * *
    * Output only. Region in which BigQuery dataset is located.
    * 
* * string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for datasetRegion. */ - com.google.protobuf.ByteString - getDatasetRegionBytes(); + com.google.protobuf.ByteString getDatasetRegionBytes(); /** + * + * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -355,10 +466,13 @@ public interface TransferConfigOrBuilder extends
    * 
* * string notification_pubsub_topic = 15; + * * @return The notificationPubsubTopic. */ java.lang.String getNotificationPubsubTopic(); /** + * + * *
    * Pub/Sub topic where notifications will be sent after transfer runs
    * associated with this transfer config finish.
@@ -367,32 +481,40 @@ public interface TransferConfigOrBuilder extends
    * 
* * string notification_pubsub_topic = 15; + * * @return The bytes for notificationPubsubTopic. */ - com.google.protobuf.ByteString - getNotificationPubsubTopicBytes(); + com.google.protobuf.ByteString getNotificationPubsubTopicBytes(); /** + * + * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + * * @return Whether the emailPreferences field is set. */ boolean hasEmailPreferences(); /** + * + * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
    * 
* * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + * * @return The emailPreferences. */ com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences(); /** + * + * *
    * Email notifications will be sent according to these preferences
    * to the email address of the user who owns this transfer config.
@@ -400,40 +522,56 @@ public interface TransferConfigOrBuilder extends
    *
    * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18;
    */
-  com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder();
+  com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder
+      getEmailPreferencesOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the ownerInfo field is set. */ boolean hasOwnerInfo(); /** + * + * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The ownerInfo. */ com.google.cloud.bigquery.datatransfer.v1.UserInfo getOwnerInfo(); /** + * + * *
    * Output only. Information about the user whose credentials are used to transfer data.
    * Populated only for `transferConfigs.get` requests. In case the user
    * information is not available, this field will not be populated.
    * 
* - * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.cloud.bigquery.datatransfer.v1.UserInfo owner_info = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder getOwnerInfoOrBuilder(); - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.DestinationCase getDestinationCase(); + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.DestinationCase + getDestinationCase(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java similarity index 68% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java index d262e22acf8c..a6b008390b79 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Represents a user facing message for a particular data transfer run.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferMessage} */ -public final class TransferMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransferMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.TransferMessage) TransferMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransferMessage.newBuilder() to construct. private TransferMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransferMessage() { severity_ = 0; messageText_ = ""; @@ -26,39 +44,43 @@ private TransferMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransferMessage(); } @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.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); } /** + * + * *
    * Represents data transfer user facing message severity.
    * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity} */ - public enum MessageSeverity - implements com.google.protobuf.ProtocolMessageEnum { + public enum MessageSeverity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No severity specified.
      * 
@@ -67,6 +89,8 @@ public enum MessageSeverity */ MESSAGE_SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Informational message.
      * 
@@ -75,6 +99,8 @@ public enum MessageSeverity */ INFO(1), /** + * + * *
      * Warning message.
      * 
@@ -83,6 +109,8 @@ public enum MessageSeverity */ WARNING(2), /** + * + * *
      * Error message.
      * 
@@ -94,6 +122,8 @@ public enum MessageSeverity ; /** + * + * *
      * No severity specified.
      * 
@@ -102,6 +132,8 @@ public enum MessageSeverity */ public static final int MESSAGE_SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Informational message.
      * 
@@ -110,6 +142,8 @@ public enum MessageSeverity */ public static final int INFO_VALUE = 1; /** + * + * *
      * Warning message.
      * 
@@ -118,6 +152,8 @@ public enum MessageSeverity */ public static final int WARNING_VALUE = 2; /** + * + * *
      * Error message.
      * 
@@ -126,7 +162,6 @@ public enum MessageSeverity */ public static final int ERROR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -151,41 +186,47 @@ public static MessageSeverity valueOf(int value) { */ public static MessageSeverity forNumber(int value) { switch (value) { - case 0: return MESSAGE_SEVERITY_UNSPECIFIED; - case 1: return INFO; - case 2: return WARNING; - case 3: return ERROR; - default: return null; + case 0: + return MESSAGE_SEVERITY_UNSPECIFIED; + case 1: + return INFO; + case 2: + return WARNING; + case 3: + return ERROR; + 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< - MessageSeverity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MessageSeverity findValueByNumber(int number) { - return MessageSeverity.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 MessageSeverity findValueByNumber(int number) { + return MessageSeverity.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.datatransfer.v1.TransferMessage.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDescriptor() + .getEnumTypes() + .get(0); } private static final MessageSeverity[] VALUES = values(); @@ -193,8 +234,7 @@ public MessageSeverity findValueByNumber(int number) { public static MessageSeverity 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; @@ -214,11 +254,14 @@ private MessageSeverity(int value) { public static final int MESSAGE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp messageTime_; /** + * + * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; + * * @return Whether the messageTime field is set. */ @java.lang.Override @@ -226,11 +269,14 @@ public boolean hasMessageTime() { return messageTime_ != null; } /** + * + * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; + * * @return The messageTime. */ @java.lang.Override @@ -238,6 +284,8 @@ public com.google.protobuf.Timestamp getMessageTime() { return messageTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : messageTime_; } /** + * + * *
    * Time when message was logged.
    * 
@@ -252,38 +300,55 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 2; private int severity_; /** + * + * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @return The severity. */ - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(severity_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf( + severity_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED + : result; } public static final int MESSAGE_TEXT_FIELD_NUMBER = 3; private volatile java.lang.Object messageText_; /** + * + * *
    * Message text.
    * 
* * string message_text = 3; + * * @return The messageText. */ @java.lang.Override @@ -292,29 +357,29 @@ public java.lang.String getMessageText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageText_ = s; return s; } } /** + * + * *
    * Message text.
    * 
* * string message_text = 3; + * * @return The bytes for messageText. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageTextBytes() { + public com.google.protobuf.ByteString getMessageTextBytes() { java.lang.Object ref = messageText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); messageText_ = b; return b; } else { @@ -323,6 +388,7 @@ public java.lang.String getMessageText() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,12 +400,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 (messageTime_ != null) { output.writeMessage(1, getMessageTime()); } - if (severity_ != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.MESSAGE_SEVERITY_UNSPECIFIED.getNumber()) { + if (severity_ + != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity + .MESSAGE_SEVERITY_UNSPECIFIED + .getNumber()) { output.writeEnum(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageText_)) { @@ -355,12 +423,13 @@ public int getSerializedSize() { size = 0; if (messageTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMessageTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessageTime()); } - if (severity_ != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.MESSAGE_SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, severity_); + if (severity_ + != com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity + .MESSAGE_SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageText_); @@ -373,21 +442,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.datatransfer.v1.TransferMessage)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.TransferMessage other = (com.google.cloud.bigquery.datatransfer.v1.TransferMessage) obj; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage other = + (com.google.cloud.bigquery.datatransfer.v1.TransferMessage) obj; if (hasMessageTime() != other.hasMessageTime()) return false; if (hasMessageTime()) { - if (!getMessageTime() - .equals(other.getMessageTime())) return false; + if (!getMessageTime().equals(other.getMessageTime())) return false; } if (severity_ != other.severity_) return false; - if (!getMessageText() - .equals(other.getMessageText())) return false; + if (!getMessageText().equals(other.getMessageText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,129 +481,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage 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.datatransfer.v1.TransferMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage 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; } /** + * + * *
    * Represents a user facing message for a particular data transfer run.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferMessage} */ - 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.datatransfer.v1.TransferMessage) com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.class, + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.TransferMessage.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(); @@ -553,9 +628,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } @java.lang.Override @@ -574,7 +649,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.TransferMessage result = new com.google.cloud.bigquery.datatransfer.v1.TransferMessage(this); + com.google.cloud.bigquery.datatransfer.v1.TransferMessage result = + new com.google.cloud.bigquery.datatransfer.v1.TransferMessage(this); if (messageTimeBuilder_ == null) { result.messageTime_ = messageTime_; } else { @@ -590,38 +666,39 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferMessage) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferMessage)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferMessage) other); } else { super.mergeFrom(other); return this; @@ -629,7 +706,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferMessage other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance()) + return this; if (other.hasMessageTime()) { mergeMessageTime(other.getMessageTime()); } @@ -666,29 +744,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getMessageTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - severity_ = input.readEnum(); - - break; - } // case 16 - case 26: { - messageText_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getMessageTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + severity_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + messageText_ = input.readStringRequireUtf8(); + + 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) { @@ -701,34 +781,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp messageTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> messageTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + messageTimeBuilder_; /** + * + * *
      * Time when message was logged.
      * 
* * .google.protobuf.Timestamp message_time = 1; + * * @return Whether the messageTime field is set. */ public boolean hasMessageTime() { return messageTimeBuilder_ != null || messageTime_ != null; } /** + * + * *
      * Time when message was logged.
      * 
* * .google.protobuf.Timestamp message_time = 1; + * * @return The messageTime. */ public com.google.protobuf.Timestamp getMessageTime() { if (messageTimeBuilder_ == null) { - return messageTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : messageTime_; + return messageTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : messageTime_; } else { return messageTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when message was logged.
      * 
@@ -749,14 +842,15 @@ public Builder setMessageTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when message was logged.
      * 
* * .google.protobuf.Timestamp message_time = 1; */ - public Builder setMessageTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setMessageTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (messageTimeBuilder_ == null) { messageTime_ = builderForValue.build(); onChanged(); @@ -767,6 +861,8 @@ public Builder setMessageTime( return this; } /** + * + * *
      * Time when message was logged.
      * 
@@ -777,7 +873,9 @@ public Builder mergeMessageTime(com.google.protobuf.Timestamp value) { if (messageTimeBuilder_ == null) { if (messageTime_ != null) { messageTime_ = - com.google.protobuf.Timestamp.newBuilder(messageTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(messageTime_) + .mergeFrom(value) + .buildPartial(); } else { messageTime_ = value; } @@ -789,6 +887,8 @@ public Builder mergeMessageTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when message was logged.
      * 
@@ -807,6 +907,8 @@ public Builder clearMessageTime() { return this; } /** + * + * *
      * Time when message was logged.
      * 
@@ -814,11 +916,13 @@ public Builder clearMessageTime() { * .google.protobuf.Timestamp message_time = 1; */ public com.google.protobuf.Timestamp.Builder getMessageTimeBuilder() { - + onChanged(); return getMessageTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when message was logged.
      * 
@@ -829,11 +933,14 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { if (messageTimeBuilder_ != null) { return messageTimeBuilder_.getMessageOrBuilder(); } else { - return messageTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : messageTime_; + return messageTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : messageTime_; } } /** + * + * *
      * Time when message was logged.
      * 
@@ -841,14 +948,17 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { * .google.protobuf.Timestamp message_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getMessageTimeFieldBuilder() { if (messageTimeBuilder_ == null) { - messageTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getMessageTime(), - getParentForChildren(), - isClean()); + messageTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMessageTime(), getParentForChildren(), isClean()); messageTime_ = null; } return messageTimeBuilder_; @@ -856,73 +966,99 @@ public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder() { private int severity_ = 0; /** + * + * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** + * + * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @return The severity. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(severity_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf( + severity_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED + : result; } /** + * + * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @param value The severity to set. * @return This builder for chaining. */ - public Builder setSeverity(com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { + public Builder setSeverity( + com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity value) { if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Message severity.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -930,18 +1066,20 @@ public Builder clearSeverity() { private java.lang.Object messageText_ = ""; /** + * + * *
      * Message text.
      * 
* * string message_text = 3; + * * @return The messageText. */ public java.lang.String getMessageText() { java.lang.Object ref = messageText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageText_ = s; return s; @@ -950,20 +1088,21 @@ public java.lang.String getMessageText() { } } /** + * + * *
      * Message text.
      * 
* * string message_text = 3; + * * @return The bytes for messageText. */ - public com.google.protobuf.ByteString - getMessageTextBytes() { + public com.google.protobuf.ByteString getMessageTextBytes() { java.lang.Object ref = messageText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); messageText_ = b; return b; } else { @@ -971,61 +1110,68 @@ public java.lang.String getMessageText() { } } /** + * + * *
      * Message text.
      * 
* * string message_text = 3; + * * @param value The messageText to set. * @return This builder for chaining. */ - public Builder setMessageText( - java.lang.String value) { + public Builder setMessageText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + messageText_ = value; onChanged(); return this; } /** + * + * *
      * Message text.
      * 
* * string message_text = 3; + * * @return This builder for chaining. */ public Builder clearMessageText() { - + messageText_ = getDefaultInstance().getMessageText(); onChanged(); return this; } /** + * + * *
      * Message text.
      * 
* * string message_text = 3; + * * @param value The bytes for messageText to set. * @return This builder for chaining. */ - public Builder setMessageTextBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + messageText_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1035,12 +1181,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.TransferMessage) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferMessage) private static final com.google.cloud.bigquery.datatransfer.v1.TransferMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.TransferMessage(); } @@ -1049,27 +1195,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferMessage 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 TransferMessage 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; @@ -1084,6 +1230,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java similarity index 66% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java index 0aa8657f9b94..3ede265df721 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessageOrBuilder.java @@ -1,31 +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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface TransferMessageOrBuilder extends +public interface TransferMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.TransferMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; + * * @return Whether the messageTime field is set. */ boolean hasMessageTime(); /** + * + * *
    * Time when message was logged.
    * 
* * .google.protobuf.Timestamp message_time = 1; + * * @return The messageTime. */ com.google.protobuf.Timestamp getMessageTime(); /** + * + * *
    * Time when message was logged.
    * 
@@ -35,41 +59,54 @@ public interface TransferMessageOrBuilder extends com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder(); /** + * + * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * Message severity.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2; + * + * * @return The severity. */ com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity(); /** + * + * *
    * Message text.
    * 
* * string message_text = 3; + * * @return The messageText. */ java.lang.String getMessageText(); /** + * + * *
    * Message text.
    * 
* * string message_text = 3; + * * @return The bytes for messageText. */ - com.google.protobuf.ByteString - getMessageTextBytes(); + com.google.protobuf.ByteString getMessageTextBytes(); } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java new file mode 100644 index 000000000000..eb36b33c0202 --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java @@ -0,0 +1,246 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/transfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public final class TransferProto { + private TransferProto() {} + + 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_datatransfer_v1_EmailPreferences_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_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/datatransfer/v1/" + + "transfer.proto\022%google.cloud.bigquery.da" + + "tatransfer.v1\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032\034googl" + + "e/protobuf/struct.proto\032\037google/protobuf" + + "/timestamp.proto\032\027google/rpc/status.prot" + + "o\"0\n\020EmailPreferences\022\034\n\024enable_failure_" + + "email\030\001 \001(\010\"\220\001\n\017ScheduleOptions\022\037\n\027disab" + + "le_auto_scheduling\030\003 \001(\010\022.\n\nstart_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022,\n\010end_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"(" + + "\n\010UserInfo\022\022\n\005email\030\001 \001(\tH\000\210\001\001B\010\n\006_email" + + "\"\265\007\n\016TransferConfig\022\014\n\004name\030\001 \001(\t\022 \n\026des" + + "tination_dataset_id\030\002 \001(\tH\000\022\024\n\014display_n" + + "ame\030\003 \001(\t\022\026\n\016data_source_id\030\005 \001(\t\022\'\n\006par" + + "ams\030\t \001(\0132\027.google.protobuf.Struct\022\020\n\010sc" + + "hedule\030\007 \001(\t\022P\n\020schedule_options\030\030 \001(\01326" + + ".google.cloud.bigquery.datatransfer.v1.S" + + "cheduleOptions\022 \n\030data_refresh_window_da" + + "ys\030\014 \001(\005\022\020\n\010disabled\030\r \001(\010\0224\n\013update_tim" + + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0226\n\rnext_run_time\030\010 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022H\n\005state\030\n \001(\01624.google" + + ".cloud.bigquery.datatransfer.v1.Transfer" + + "StateB\003\340A\003\022\017\n\007user_id\030\013 \001(\003\022\033\n\016dataset_r" + + "egion\030\016 \001(\tB\003\340A\003\022!\n\031notification_pubsub_" + + "topic\030\017 \001(\t\022R\n\021email_preferences\030\022 \001(\01327" + + ".google.cloud.bigquery.datatransfer.v1.E" + + "mailPreferences\022M\n\nowner_info\030\033 \001(\0132/.go" + + "ogle.cloud.bigquery.datatransfer.v1.User" + + "InfoB\003\340A\003H\001\210\001\001:\271\001\352A\265\001\n2bigquerydatatrans" + + "fer.googleapis.com/TransferConfig\0224proje" + + "cts/{project}/transferConfigs/{transfer_" + + "config}\022Iprojects/{project}/locations/{l" + + "ocation}/transferConfigs/{transfer_confi" + + "g}B\r\n\013destinationB\r\n\013_owner_info\"\372\006\n\013Tra" + + "nsferRun\022\014\n\004name\030\001 \001(\t\0221\n\rschedule_time\030" + + "\003 \001(\0132\032.google.protobuf.Timestamp\022,\n\010run" + + "_time\030\n \001(\0132\032.google.protobuf.Timestamp\022" + + "(\n\014error_status\030\025 \001(\0132\022.google.rpc.Statu" + + "s\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + ",\n\006params\030\t \001(\0132\027.google.protobuf.Struct" + + "B\003\340A\003\022%\n\026destination_dataset_id\030\002 \001(\tB\003\340" + + "A\003H\000\022\033\n\016data_source_id\030\007 \001(\tB\003\340A\003\022C\n\005sta" + + "te\030\010 \001(\01624.google.cloud.bigquery.datatra" + + "nsfer.v1.TransferState\022\017\n\007user_id\030\013 \001(\003\022" + + "\025\n\010schedule\030\014 \001(\tB\003\340A\003\022&\n\031notification_p" + + "ubsub_topic\030\027 \001(\tB\003\340A\003\022W\n\021email_preferen" + + "ces\030\031 \001(\01327.google.cloud.bigquery.datatr" + + "ansfer.v1.EmailPreferencesB\003\340A\003:\304\001\352A\300\001\n\'" + + "bigquerydatatransfer.googleapis.com/Run\022" + + "?projects/{project}/transferConfigs/{tra" + + "nsfer_config}/runs/{run}\022Tprojects/{proj" + + "ect}/locations/{location}/transferConfig" + + "s/{transfer_config}/runs/{run}B\r\n\013destin" + + "ation\"\212\002\n\017TransferMessage\0220\n\014message_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022X\n\010s" + + "everity\030\002 \001(\0162F.google.cloud.bigquery.da" + + "tatransfer.v1.TransferMessage.MessageSev" + + "erity\022\024\n\014message_text\030\003 \001(\t\"U\n\017MessageSe" + + "verity\022 \n\034MESSAGE_SEVERITY_UNSPECIFIED\020\000" + + "\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003*K\n\014Tr" + + "ansferType\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020" + + "\000\022\t\n\005BATCH\020\001\022\r\n\tSTREAMING\020\002\032\002\030\001*s\n\rTrans" + + "ferState\022\036\n\032TRANSFER_STATE_UNSPECIFIED\020\000" + + "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + + "\004\022\n\n\006FAILED\020\005\022\r\n\tCANCELLED\020\006B\223\002\n)com.goo" + + "gle.cloud.bigquery.datatransfer.v1B\rTran" + + "sferProtoP\001ZQgoogle.golang.org/genproto/" + + "googleapis/cloud/bigquery/datatransfer/v" + + "1;datatransfer\242\002\005GCBDT\252\002%Google.Cloud.Bi" + + "gQuery.DataTransfer.V1\312\002%Google\\Cloud\\Bi" + + "gQuery\\DataTransfer\\V1\352\002)Google::Cloud::" + + "Bigquery::DataTransfer::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor, + new java.lang.String[] { + "EnableFailureEmail", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor, + new java.lang.String[] { + "DisableAutoScheduling", "StartTime", "EndTime", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor, + new java.lang.String[] { + "Email", "Email", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor, + new java.lang.String[] { + "Name", + "DestinationDatasetId", + "DisplayName", + "DataSourceId", + "Params", + "Schedule", + "ScheduleOptions", + "DataRefreshWindowDays", + "Disabled", + "UpdateTime", + "NextRunTime", + "State", + "UserId", + "DatasetRegion", + "NotificationPubsubTopic", + "EmailPreferences", + "OwnerInfo", + "Destination", + "OwnerInfo", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor, + new java.lang.String[] { + "Name", + "ScheduleTime", + "RunTime", + "ErrorStatus", + "StartTime", + "EndTime", + "UpdateTime", + "Params", + "DestinationDatasetId", + "DataSourceId", + "State", + "UserId", + "Schedule", + "NotificationPubsubTopic", + "EmailPreferences", + "Destination", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor, + new java.lang.String[] { + "MessageTime", "Severity", "MessageText", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java similarity index 74% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java index 8b5af50e9521..d3d123d8956b 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Represents a data transfer run.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferRun} */ -public final class TransferRun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransferRun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.TransferRun) TransferRunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransferRun.newBuilder() to construct. private TransferRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransferRun() { name_ = ""; dataSourceId_ = ""; @@ -29,37 +47,41 @@ private TransferRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransferRun(); } @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.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DESTINATION_DATASET_ID(2), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -75,25 +97,29 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 2: return DESTINATION_DATASET_ID; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 2: + return DESTINATION_DATASET_ID; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -102,6 +128,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -110,14 +137,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -126,16 +154,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,11 +173,14 @@ public java.lang.String getName() { public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp scheduleTime_; /** + * + * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -158,18 +188,25 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** + * + * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; + * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } /** + * + * *
    * Minimum time after which a transfer run can be started.
    * 
@@ -184,12 +221,15 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { public static final int RUN_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp runTime_; /** + * + * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; + * * @return Whether the runTime field is set. */ @java.lang.Override @@ -197,12 +237,15 @@ public boolean hasRunTime() { return runTime_ != null; } /** + * + * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; + * * @return The runTime. */ @java.lang.Override @@ -210,6 +253,8 @@ public com.google.protobuf.Timestamp getRunTime() { return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; } /** + * + * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
@@ -225,11 +270,14 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
   public static final int ERROR_STATUS_FIELD_NUMBER = 21;
   private com.google.rpc.Status errorStatus_;
   /**
+   *
+   *
    * 
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; + * * @return Whether the errorStatus field is set. */ @java.lang.Override @@ -237,11 +285,14 @@ public boolean hasErrorStatus() { return errorStatus_ != null; } /** + * + * *
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; + * * @return The errorStatus. */ @java.lang.Override @@ -249,6 +300,8 @@ public com.google.rpc.Status getErrorStatus() { return errorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : errorStatus_; } /** + * + * *
    * Status of the transfer run.
    * 
@@ -263,12 +316,16 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -276,12 +333,16 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -289,12 +350,15 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -304,12 +368,16 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -317,12 +385,16 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -330,12 +402,15 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -345,11 +420,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -357,11 +436,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -369,11 +452,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -383,6 +469,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int PARAMS_FIELD_NUMBER = 9; private com.google.protobuf.Struct params_; /** + * + * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -391,6 +479,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the params field is set. */ @java.lang.Override @@ -398,6 +487,8 @@ public boolean hasParams() { return params_ != null; } /** + * + * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -406,6 +497,7 @@ public boolean hasParams() {
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The params. */ @java.lang.Override @@ -413,6 +505,8 @@ public com.google.protobuf.Struct getParams() { return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; } /** + * + * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -429,22 +523,28 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
 
   public static final int DESTINATION_DATASET_ID_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the destinationDatasetId field is set. */ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** + * + * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The destinationDatasetId. */ public java.lang.String getDestinationDatasetId() { @@ -455,8 +555,7 @@ public java.lang.String getDestinationDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -465,23 +564,24 @@ public java.lang.String getDestinationDatasetId() { } } /** + * + * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for destinationDatasetId. */ - public com.google.protobuf.ByteString - getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -494,11 +594,14 @@ public java.lang.String getDestinationDatasetId() { public static final int DATA_SOURCE_ID_FIELD_NUMBER = 7; private volatile java.lang.Object dataSourceId_; /** + * + * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The dataSourceId. */ @java.lang.Override @@ -507,29 +610,29 @@ public java.lang.String getDataSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; } } /** + * + * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for dataSourceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataSourceIdBytes() { + public com.google.protobuf.ByteString getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -540,38 +643,52 @@ public java.lang.String getDataSourceId() { public static final int STATE_FIELD_NUMBER = 8; private int state_; /** + * + * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = + com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED + : result; } public static final int USER_ID_FIELD_NUMBER = 11; private long userId_; /** + * + * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; + * * @return The userId. */ @java.lang.Override @@ -582,6 +699,8 @@ public long getUserId() { public static final int SCHEDULE_FIELD_NUMBER = 12; private volatile java.lang.Object schedule_; /** + * + * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -591,6 +710,7 @@ public long getUserId() {
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The schedule. */ @java.lang.Override @@ -599,14 +719,15 @@ public java.lang.String getSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; } } /** + * + * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -616,16 +737,15 @@ public java.lang.String getSchedule() {
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for schedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getScheduleBytes() { + public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedule_ = b; return b; } else { @@ -636,6 +756,8 @@ public java.lang.String getSchedule() { public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER = 23; private volatile java.lang.Object notificationPubsubTopic_; /** + * + * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -643,7 +765,9 @@ public java.lang.String getSchedule() {
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The notificationPubsubTopic. */ @java.lang.Override @@ -652,14 +776,15 @@ public java.lang.String getNotificationPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; } } /** + * + * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -667,17 +792,17 @@ public java.lang.String getNotificationPubsubTopic() {
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for notificationPubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -688,13 +813,18 @@ public java.lang.String getNotificationPubsubTopic() { public static final int EMAIL_PREFERENCES_FIELD_NUMBER = 25; private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; /** + * + * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the emailPreferences field is set. */ @java.lang.Override @@ -702,34 +832,47 @@ public boolean hasEmailPreferences() { return emailPreferences_ != null; } /** + * + * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The emailPreferences. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { - return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; } /** + * + * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder() { return getEmailPreferences(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -741,8 +884,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_); } @@ -764,7 +906,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSourceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dataSourceId_); } - if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, state_); } if (params_ != null) { @@ -804,53 +948,46 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_); } if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dataSourceId_); } - if (state_ != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + if (state_ + != com.google.cloud.bigquery.datatransfer.v1.TransferState.TRANSFER_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getParams()); } if (runTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getRunTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRunTime()); } if (userId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, userId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, schedule_); } if (errorStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getErrorStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getErrorStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationPubsubTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, notificationPubsubTopic_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(23, notificationPubsubTopic_); } if (emailPreferences_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getEmailPreferences()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getEmailPreferences()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -860,69 +997,56 @@ 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.datatransfer.v1.TransferRun)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.TransferRun other = (com.google.cloud.bigquery.datatransfer.v1.TransferRun) obj; + com.google.cloud.bigquery.datatransfer.v1.TransferRun other = + (com.google.cloud.bigquery.datatransfer.v1.TransferRun) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime() - .equals(other.getScheduleTime())) return false; + if (!getScheduleTime().equals(other.getScheduleTime())) return false; } if (hasRunTime() != other.hasRunTime()) return false; if (hasRunTime()) { - if (!getRunTime() - .equals(other.getRunTime())) return false; + if (!getRunTime().equals(other.getRunTime())) return false; } if (hasErrorStatus() != other.hasErrorStatus()) return false; if (hasErrorStatus()) { - if (!getErrorStatus() - .equals(other.getErrorStatus())) return false; + if (!getErrorStatus().equals(other.getErrorStatus())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasParams() != other.hasParams()) return false; if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; + if (!getParams().equals(other.getParams())) return false; } - if (!getDataSourceId() - .equals(other.getDataSourceId())) return false; + if (!getDataSourceId().equals(other.getDataSourceId())) return false; if (state_ != other.state_) return false; - if (getUserId() - != other.getUserId()) return false; - if (!getSchedule() - .equals(other.getSchedule())) return false; - if (!getNotificationPubsubTopic() - .equals(other.getNotificationPubsubTopic())) return false; + if (getUserId() != other.getUserId()) return false; + if (!getSchedule().equals(other.getSchedule())) return false; + if (!getNotificationPubsubTopic().equals(other.getNotificationPubsubTopic())) return false; if (hasEmailPreferences() != other.hasEmailPreferences()) return false; if (hasEmailPreferences()) { - if (!getEmailPreferences() - .equals(other.getEmailPreferences())) return false; + if (!getEmailPreferences().equals(other.getEmailPreferences())) return false; } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: - if (!getDestinationDatasetId() - .equals(other.getDestinationDatasetId())) return false; + if (!getDestinationDatasetId().equals(other.getDestinationDatasetId())) return false; break; case 0: default: @@ -973,8 +1097,7 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + USER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getSchedule().hashCode(); hash = (37 * hash) + NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER; @@ -997,129 +1120,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun 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.datatransfer.v1.TransferRun prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.TransferRun 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; } /** + * + * *
    * Represents a data transfer run.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferRun} */ - 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.datatransfer.v1.TransferRun) com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, + com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.TransferRun.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(); @@ -1189,9 +1319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; } @java.lang.Override @@ -1210,7 +1340,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferRun buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.TransferRun result = new com.google.cloud.bigquery.datatransfer.v1.TransferRun(this); + com.google.cloud.bigquery.datatransfer.v1.TransferRun result = + new com.google.cloud.bigquery.datatransfer.v1.TransferRun(this); result.name_ = name_; if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; @@ -1269,38 +1400,39 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferRun) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferRun)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferRun) other); } else { super.mergeFrom(other); return this; @@ -1308,7 +1440,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferRun other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1356,15 +1489,17 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferRun o mergeEmailPreferences(other.getEmailPreferences()); } switch (other.getDestinationCase()) { - case DESTINATION_DATASET_ID: { - destinationCase_ = 2; - destination_ = other.destination_; - onChanged(); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case DESTINATION_DATASET_ID: + { + destinationCase_ = 2; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1392,104 +1527,105 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - destinationCase_ = 2; - destination_ = s; - break; - } // case 18 - case 26: { - input.readMessage( - getScheduleTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - dataSourceId_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 64: { - state_ = input.readEnum(); - - break; - } // case 64 - case 74: { - input.readMessage( - getParamsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - case 82: { - input.readMessage( - getRunTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 88: { - userId_ = input.readInt64(); - - break; - } // case 88 - case 98: { - schedule_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 170: { - input.readMessage( - getErrorStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - case 186: { - notificationPubsubTopic_ = input.readStringRequireUtf8(); - - break; - } // case 186 - case 202: { - input.readMessage( - getEmailPreferencesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 202 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 2; + destination_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + dataSourceId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + + break; + } // case 64 + case 74: + { + input.readMessage(getParamsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getRunTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 88: + { + userId_ = input.readInt64(); + + break; + } // case 88 + case 98: + { + schedule_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 170: + { + input.readMessage(getErrorStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + case 186: + { + notificationPubsubTopic_ = input.readStringRequireUtf8(); + + break; + } // case 186 + case 202: + { + input.readMessage( + getEmailPreferencesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 202 + 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) { @@ -1499,12 +1635,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -1514,9 +1650,10 @@ public Builder clearDestination() { return this; } - private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1525,13 +1662,13 @@ public Builder clearDestination() {
      * 
* * 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; @@ -1540,6 +1677,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1548,15 +1687,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1564,6 +1702,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1572,20 +1712,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1594,15 +1736,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the transfer run.
      * Transfer run names have the form
@@ -1611,16 +1756,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1628,34 +1773,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
* * .google.protobuf.Timestamp schedule_time = 3; + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
* * .google.protobuf.Timestamp schedule_time = 3; + * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1676,14 +1834,15 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
* * .google.protobuf.Timestamp schedule_time = 3; */ - public Builder setScheduleTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleTimeBuilder_ == null) { scheduleTime_ = builderForValue.build(); onChanged(); @@ -1694,6 +1853,8 @@ public Builder setScheduleTime( return this; } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1704,7 +1865,9 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { if (scheduleTime_ != null) { scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleTime_) + .mergeFrom(value) + .buildPartial(); } else { scheduleTime_ = value; } @@ -1716,6 +1879,8 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1734,6 +1899,8 @@ public Builder clearScheduleTime() { return this; } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1741,11 +1908,13 @@ public Builder clearScheduleTime() { * .google.protobuf.Timestamp schedule_time = 3; */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - + onChanged(); return getScheduleTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1756,11 +1925,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { if (scheduleTimeBuilder_ != null) { return scheduleTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } } /** + * + * *
      * Minimum time after which a transfer run can be started.
      * 
@@ -1768,14 +1940,17 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { * .google.protobuf.Timestamp schedule_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getScheduleTimeFieldBuilder() { if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), - getParentForChildren(), - isClean()); + scheduleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), getParentForChildren(), isClean()); scheduleTime_ = null; } return scheduleTimeBuilder_; @@ -1783,26 +1958,35 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { private com.google.protobuf.Timestamp runTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> runTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + runTimeBuilder_; /** + * + * *
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
      * 
* * .google.protobuf.Timestamp run_time = 10; + * * @return Whether the runTime field is set. */ public boolean hasRunTime() { return runTimeBuilder_ != null || runTime_ != null; } /** + * + * *
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
      * 
* * .google.protobuf.Timestamp run_time = 10; + * * @return The runTime. */ public com.google.protobuf.Timestamp getRunTime() { @@ -1813,6 +1997,8 @@ public com.google.protobuf.Timestamp getRunTime() { } } /** + * + * *
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -1834,6 +2020,8 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -1841,8 +2029,7 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp run_time = 10;
      */
-    public Builder setRunTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (runTimeBuilder_ == null) {
         runTime_ = builderForValue.build();
         onChanged();
@@ -1853,6 +2040,8 @@ public Builder setRunTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -1864,7 +2053,7 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) {
       if (runTimeBuilder_ == null) {
         if (runTime_ != null) {
           runTime_ =
-            com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial();
         } else {
           runTime_ = value;
         }
@@ -1876,6 +2065,8 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -1895,6 +2086,8 @@ public Builder clearRunTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -1903,11 +2096,13 @@ public Builder clearRunTime() {
      * .google.protobuf.Timestamp run_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() {
-      
+
       onChanged();
       return getRunTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -1919,11 +2114,12 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
       if (runTimeBuilder_ != null) {
         return runTimeBuilder_.getMessageOrBuilder();
       } else {
-        return runTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : runTime_;
+        return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_;
       }
     }
     /**
+     *
+     *
      * 
      * For batch transfer runs, specifies the date and time of the data should be
      * ingested.
@@ -1932,14 +2128,17 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
      * .google.protobuf.Timestamp run_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getRunTimeFieldBuilder() {
       if (runTimeBuilder_ == null) {
-        runTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getRunTime(),
-                getParentForChildren(),
-                isClean());
+        runTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getRunTime(), getParentForChildren(), isClean());
         runTime_ = null;
       }
       return runTimeBuilder_;
@@ -1947,24 +2146,31 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() {
 
     private com.google.rpc.Status errorStatus_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorStatusBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        errorStatusBuilder_;
     /**
+     *
+     *
      * 
      * Status of the transfer run.
      * 
* * .google.rpc.Status error_status = 21; + * * @return Whether the errorStatus field is set. */ public boolean hasErrorStatus() { return errorStatusBuilder_ != null || errorStatus_ != null; } /** + * + * *
      * Status of the transfer run.
      * 
* * .google.rpc.Status error_status = 21; + * * @return The errorStatus. */ public com.google.rpc.Status getErrorStatus() { @@ -1975,6 +2181,8 @@ public com.google.rpc.Status getErrorStatus() { } } /** + * + * *
      * Status of the transfer run.
      * 
@@ -1995,14 +2203,15 @@ public Builder setErrorStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Status of the transfer run.
      * 
* * .google.rpc.Status error_status = 21; */ - public Builder setErrorStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue) { if (errorStatusBuilder_ == null) { errorStatus_ = builderForValue.build(); onChanged(); @@ -2013,6 +2222,8 @@ public Builder setErrorStatus( return this; } /** + * + * *
      * Status of the transfer run.
      * 
@@ -2023,7 +2234,7 @@ public Builder mergeErrorStatus(com.google.rpc.Status value) { if (errorStatusBuilder_ == null) { if (errorStatus_ != null) { errorStatus_ = - com.google.rpc.Status.newBuilder(errorStatus_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(errorStatus_).mergeFrom(value).buildPartial(); } else { errorStatus_ = value; } @@ -2035,6 +2246,8 @@ public Builder mergeErrorStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Status of the transfer run.
      * 
@@ -2053,6 +2266,8 @@ public Builder clearErrorStatus() { return this; } /** + * + * *
      * Status of the transfer run.
      * 
@@ -2060,11 +2275,13 @@ public Builder clearErrorStatus() { * .google.rpc.Status error_status = 21; */ public com.google.rpc.Status.Builder getErrorStatusBuilder() { - + onChanged(); return getErrorStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Status of the transfer run.
      * 
@@ -2075,11 +2292,12 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { if (errorStatusBuilder_ != null) { return errorStatusBuilder_.getMessageOrBuilder(); } else { - return errorStatus_ == null ? - com.google.rpc.Status.getDefaultInstance() : errorStatus_; + return errorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : errorStatus_; } } /** + * + * *
      * Status of the transfer run.
      * 
@@ -2087,14 +2305,15 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { * .google.rpc.Status error_status = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorStatusFieldBuilder() { if (errorStatusBuilder_ == null) { - errorStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getErrorStatus(), - getParentForChildren(), - isClean()); + errorStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getErrorStatus(), getParentForChildren(), isClean()); errorStatus_ = null; } return errorStatusBuilder_; @@ -2102,26 +2321,37 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2132,12 +2362,15 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2153,15 +2386,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -2172,18 +2407,21 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2195,12 +2433,15 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -2214,51 +2455,62 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. Time when transfer run was started.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2266,26 +2518,37 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2296,12 +2559,15 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2317,15 +2583,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2336,18 +2604,21 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2359,12 +2630,15 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2378,51 +2652,62 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. Time when transfer run ended.
      * Parameter ignored by server for input requests.
      * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2430,39 +2715,58 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2478,14 +2782,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2496,17 +2803,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2518,11 +2829,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2536,48 +2851,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Last time the data transfer run state was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2585,8 +2916,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Struct params_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> paramsBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + paramsBuilder_; /** + * + * *
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2595,12 +2931,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the params field is set. */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** + * + * *
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2609,6 +2948,7 @@ public boolean hasParams() {
      * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The params. */ public com.google.protobuf.Struct getParams() { @@ -2619,6 +2959,8 @@ public com.google.protobuf.Struct getParams() { } } /** + * + * *
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2642,6 +2984,8 @@ public Builder setParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2651,8 +2995,7 @@ public Builder setParams(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setParams(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) {
       if (paramsBuilder_ == null) {
         params_ = builderForValue.build();
         onChanged();
@@ -2663,6 +3006,8 @@ public Builder setParams(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2675,8 +3020,7 @@ public Builder setParams(
     public Builder mergeParams(com.google.protobuf.Struct value) {
       if (paramsBuilder_ == null) {
         if (params_ != null) {
-          params_ =
-            com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
+          params_ = com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
         } else {
           params_ = value;
         }
@@ -2688,6 +3032,8 @@ public Builder mergeParams(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2709,6 +3055,8 @@ public Builder clearParams() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2719,11 +3067,13 @@ public Builder clearParams() {
      * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.protobuf.Struct.Builder getParamsBuilder() {
-      
+
       onChanged();
       return getParamsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2737,11 +3087,12 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
       if (paramsBuilder_ != null) {
         return paramsBuilder_.getMessageOrBuilder();
       } else {
-        return params_ == null ?
-            com.google.protobuf.Struct.getDefaultInstance() : params_;
+        return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Parameters specific to each data source. For more information see the
      * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -2752,25 +3103,31 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
      * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getParamsFieldBuilder() {
       if (paramsBuilder_ == null) {
-        paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                getParams(),
-                getParentForChildren(),
-                isClean());
+        paramsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                getParams(), getParentForChildren(), isClean());
         params_ = null;
       }
       return paramsBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the destinationDatasetId field is set. */ @java.lang.Override @@ -2778,11 +3135,14 @@ public boolean hasDestinationDatasetId() { return destinationCase_ == 2; } /** + * + * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The destinationDatasetId. */ @java.lang.Override @@ -2792,8 +3152,7 @@ public java.lang.String getDestinationDatasetId() { ref = destination_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; @@ -2804,24 +3163,25 @@ public java.lang.String getDestinationDatasetId() { } } /** + * + * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for destinationDatasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationDatasetIdBytes() { + public com.google.protobuf.ByteString getDestinationDatasetIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } @@ -2831,30 +3191,35 @@ public java.lang.String getDestinationDatasetId() { } } /** + * + * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetId( - java.lang.String value) { + public Builder setDestinationDatasetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - destinationCase_ = 2; + throw new NullPointerException(); + } + destinationCase_ = 2; destination_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDestinationDatasetId() { @@ -2866,20 +3231,22 @@ public Builder clearDestinationDatasetId() { return this; } /** + * + * *
      * Output only. The BigQuery target dataset id.
      * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for destinationDatasetId to set. * @return This builder for chaining. */ - public Builder setDestinationDatasetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDestinationDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); destinationCase_ = 2; destination_ = value; onChanged(); @@ -2888,18 +3255,20 @@ public Builder setDestinationDatasetIdBytes( private java.lang.Object dataSourceId_ = ""; /** + * + * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The dataSourceId. */ public java.lang.String getDataSourceId() { java.lang.Object ref = dataSourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSourceId_ = s; return s; @@ -2908,20 +3277,21 @@ public java.lang.String getDataSourceId() { } } /** + * + * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for dataSourceId. */ - public com.google.protobuf.ByteString - getDataSourceIdBytes() { + public com.google.protobuf.ByteString getDataSourceIdBytes() { java.lang.Object ref = dataSourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSourceId_ = b; return b; } else { @@ -2929,54 +3299,61 @@ public java.lang.String getDataSourceId() { } } /** + * + * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceId( - java.lang.String value) { + public Builder setDataSourceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataSourceId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDataSourceId() { - + dataSourceId_ = getDefaultInstance().getDataSourceId(); onChanged(); return this; } /** + * + * *
      * Output only. Data source id.
      * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for dataSourceId to set. * @return This builder for chaining. */ - public Builder setDataSourceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDataSourceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceId_ = value; onChanged(); return this; @@ -2984,51 +3361,67 @@ public Builder setDataSourceIdBytes( private int state_ = 0; /** + * + * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); - return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; + com.google.cloud.bigquery.datatransfer.v1.TransferState result = + com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); + return result == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED + : result; } /** + * + * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @param value The state to set. * @return This builder for chaining. */ @@ -3036,33 +3429,39 @@ public Builder setState(com.google.cloud.bigquery.datatransfer.v1.TransferState if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Data transfer run state. Ignored for input requests.
      * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long userId_ ; + private long userId_; /** + * + * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; + * * @return The userId. */ @java.lang.Override @@ -3070,30 +3469,36 @@ public long getUserId() { return userId_; } /** + * + * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; + * * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId(long value) { - + userId_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated. Unique ID of the user on whose behalf transfer is done.
      * 
* * int64 user_id = 11; + * * @return This builder for chaining. */ public Builder clearUserId() { - + userId_ = 0L; onChanged(); return this; @@ -3101,6 +3506,8 @@ public Builder clearUserId() { private java.lang.Object schedule_ = ""; /** + * + * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3110,13 +3517,13 @@ public Builder clearUserId() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = schedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; @@ -3125,6 +3532,8 @@ public java.lang.String getSchedule() { } } /** + * + * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3134,15 +3543,14 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for schedule. */ - public com.google.protobuf.ByteString - getScheduleBytes() { + public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedule_ = b; return b; } else { @@ -3150,6 +3558,8 @@ public java.lang.String getSchedule() { } } /** + * + * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3159,20 +3569,22 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The schedule to set. * @return This builder for chaining. */ - public Builder setSchedule( - java.lang.String value) { + public Builder setSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schedule_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3182,15 +3594,18 @@ public Builder setSchedule(
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSchedule() { - + schedule_ = getDefaultInstance().getSchedule(); onChanged(); return this; } /** + * + * *
      * Output only. Describes the schedule of this transfer run if it was
      * created as part of a regular schedule. For batch transfer runs that are
@@ -3200,16 +3615,16 @@ public Builder clearSchedule() {
      * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for schedule to set. * @return This builder for chaining. */ - public Builder setScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schedule_ = value; onChanged(); return this; @@ -3217,6 +3632,8 @@ public Builder setScheduleBytes( private java.lang.Object notificationPubsubTopic_ = ""; /** + * + * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3224,14 +3641,15 @@ public Builder setScheduleBytes(
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The notificationPubsubTopic. */ public java.lang.String getNotificationPubsubTopic() { java.lang.Object ref = notificationPubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationPubsubTopic_ = s; return s; @@ -3240,6 +3658,8 @@ public java.lang.String getNotificationPubsubTopic() { } } /** + * + * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3247,16 +3667,16 @@ public java.lang.String getNotificationPubsubTopic() {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for notificationPubsubTopic. */ - public com.google.protobuf.ByteString - getNotificationPubsubTopicBytes() { + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { java.lang.Object ref = notificationPubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationPubsubTopic_ = b; return b; } else { @@ -3264,6 +3684,8 @@ public java.lang.String getNotificationPubsubTopic() { } } /** + * + * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3271,21 +3693,24 @@ public java.lang.String getNotificationPubsubTopic() {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopic( - java.lang.String value) { + public Builder setNotificationPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationPubsubTopic_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3293,16 +3718,20 @@ public Builder setNotificationPubsubTopic(
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearNotificationPubsubTopic() { - + notificationPubsubTopic_ = getDefaultInstance().getNotificationPubsubTopic(); onChanged(); return this; } /** + * + * *
      * Output only. Pub/Sub topic where a notification will be sent after this
      * transfer run finishes.
@@ -3310,17 +3739,18 @@ public Builder clearNotificationPubsubTopic() {
      * `projects/{project}/topics/{topic}`
      * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for notificationPubsubTopic to set. * @return This builder for chaining. */ - public Builder setNotificationPubsubTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationPubsubTopic_ = value; onChanged(); return this; @@ -3328,47 +3758,67 @@ public Builder setNotificationPubsubTopicBytes( private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> emailPreferencesBuilder_; + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + emailPreferencesBuilder_; /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the emailPreferences field is set. */ public boolean hasEmailPreferences() { return emailPreferencesBuilder_ != null || emailPreferences_ != null; } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The emailPreferences. */ public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { if (emailPreferencesBuilder_ == null) { - return emailPreferences_ == null ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; } else { return emailPreferencesBuilder_.getMessage(); } } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + public Builder setEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { if (emailPreferencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3382,13 +3832,17 @@ public Builder setEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.Ema return this; } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEmailPreferences( com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder builderForValue) { @@ -3402,19 +3856,27 @@ public Builder setEmailPreferences( return this; } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + public Builder mergeEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { if (emailPreferencesBuilder_ == null) { if (emailPreferences_ != null) { emailPreferences_ = - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder(emailPreferences_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder( + emailPreferences_) + .mergeFrom(value) + .buildPartial(); } else { emailPreferences_ = value; } @@ -3426,13 +3888,17 @@ public Builder mergeEmailPreferences(com.google.cloud.bigquery.datatransfer.v1.E return this; } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEmailPreferences() { if (emailPreferencesBuilder_ == null) { @@ -3446,61 +3912,79 @@ public Builder clearEmailPreferences() { return this; } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder getEmailPreferencesBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder + getEmailPreferencesBuilder() { + onChanged(); return getEmailPreferencesFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder() { if (emailPreferencesBuilder_ != null) { return emailPreferencesBuilder_.getMessageOrBuilder(); } else { - return emailPreferences_ == null ? - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() : emailPreferences_; + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; } } /** + * + * *
      * Output only. Email notifications will be sent according to these
      * preferences to the email address of the user who owns the transfer config
      * this run was derived from.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> getEmailPreferencesFieldBuilder() { if (emailPreferencesBuilder_ == null) { - emailPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>( - getEmailPreferences(), - getParentForChildren(), - isClean()); + emailPreferencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>( + getEmailPreferences(), getParentForChildren(), isClean()); emailPreferences_ = null; } return emailPreferencesBuilder_; } + @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); } @@ -3510,12 +3994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.TransferRun) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferRun) private static final com.google.cloud.bigquery.datatransfer.v1.TransferRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.TransferRun(); } @@ -3524,27 +4008,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferRun getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferRun 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 TransferRun 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; @@ -3559,6 +4043,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.TransferRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java similarity index 82% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java index 3544c99c1553..9276b6407f87 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface TransferRunOrBuilder extends +public interface TransferRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.TransferRun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -16,10 +34,13 @@ public interface TransferRunOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the transfer run.
    * Transfer run names have the form
@@ -28,30 +49,38 @@ public interface TransferRunOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; + * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** + * + * *
    * Minimum time after which a transfer run can be started.
    * 
* * .google.protobuf.Timestamp schedule_time = 3; + * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** + * + * *
    * Minimum time after which a transfer run can be started.
    * 
@@ -61,26 +90,34 @@ public interface TransferRunOrBuilder extends com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); /** + * + * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; + * * @return Whether the runTime field is set. */ boolean hasRunTime(); /** + * + * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
    * 
* * .google.protobuf.Timestamp run_time = 10; + * * @return The runTime. */ com.google.protobuf.Timestamp getRunTime(); /** + * + * *
    * For batch transfer runs, specifies the date and time of the data should be
    * ingested.
@@ -91,24 +128,32 @@ public interface TransferRunOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; + * * @return Whether the errorStatus field is set. */ boolean hasErrorStatus(); /** + * + * *
    * Status of the transfer run.
    * 
* * .google.rpc.Status error_status = 21; + * * @return The errorStatus. */ com.google.rpc.Status getErrorStatus(); /** + * + * *
    * Status of the transfer run.
    * 
@@ -118,93 +163,128 @@ public interface TransferRunOrBuilder extends com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder(); /** + * + * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Time when transfer run was started.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time when transfer run ended.
    * Parameter ignored by server for input requests.
    * 
* - * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Last time the data transfer run state was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -213,10 +293,13 @@ public interface TransferRunOrBuilder extends
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the params field is set. */ boolean hasParams(); /** + * + * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -225,10 +308,13 @@ public interface TransferRunOrBuilder extends
    * 
* * .google.protobuf.Struct params = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The params. */ com.google.protobuf.Struct getParams(); /** + * + * *
    * Output only. Parameters specific to each data source. For more information see the
    * bq tab in the 'Setting up a data transfer' section for each data source.
@@ -241,84 +327,108 @@ public interface TransferRunOrBuilder extends
   com.google.protobuf.StructOrBuilder getParamsOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the destinationDatasetId field is set. */ boolean hasDestinationDatasetId(); /** + * + * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The destinationDatasetId. */ java.lang.String getDestinationDatasetId(); /** + * + * *
    * Output only. The BigQuery target dataset id.
    * 
* * string destination_dataset_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for destinationDatasetId. */ - com.google.protobuf.ByteString - getDestinationDatasetIdBytes(); + com.google.protobuf.ByteString getDestinationDatasetIdBytes(); /** + * + * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The dataSourceId. */ java.lang.String getDataSourceId(); /** + * + * *
    * Output only. Data source id.
    * 
* * string data_source_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for dataSourceId. */ - com.google.protobuf.ByteString - getDataSourceIdBytes(); + com.google.protobuf.ByteString getDataSourceIdBytes(); /** + * + * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Data transfer run state. Ignored for input requests.
    * 
* * .google.cloud.bigquery.datatransfer.v1.TransferState state = 8; + * * @return The state. */ com.google.cloud.bigquery.datatransfer.v1.TransferState getState(); /** + * + * *
    * Deprecated. Unique ID of the user on whose behalf transfer is done.
    * 
* * int64 user_id = 11; + * * @return The userId. */ long getUserId(); /** + * + * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -328,10 +438,13 @@ public interface TransferRunOrBuilder extends
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The schedule. */ java.lang.String getSchedule(); /** + * + * *
    * Output only. Describes the schedule of this transfer run if it was
    * created as part of a regular schedule. For batch transfer runs that are
@@ -341,12 +454,14 @@ public interface TransferRunOrBuilder extends
    * 
* * string schedule = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for schedule. */ - com.google.protobuf.ByteString - getScheduleBytes(); + com.google.protobuf.ByteString getScheduleBytes(); /** + * + * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -354,11 +469,15 @@ public interface TransferRunOrBuilder extends
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The notificationPubsubTopic. */ java.lang.String getNotificationPubsubTopic(); /** + * + * *
    * Output only. Pub/Sub topic where a notification will be sent after this
    * transfer run finishes.
@@ -366,44 +485,60 @@ public interface TransferRunOrBuilder extends
    * `projects/{project}/topics/{topic}`
    * 
* - * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for notificationPubsubTopic. */ - com.google.protobuf.ByteString - getNotificationPubsubTopicBytes(); + com.google.protobuf.ByteString getNotificationPubsubTopicBytes(); /** + * + * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the emailPreferences field is set. */ boolean hasEmailPreferences(); /** + * + * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The emailPreferences. */ com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences(); /** + * + * *
    * Output only. Email notifications will be sent according to these
    * preferences to the email address of the user who owns the transfer config
    * this run was derived from.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder getEmailPreferencesOrBuilder(); + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder(); public com.google.cloud.bigquery.datatransfer.v1.TransferRun.DestinationCase getDestinationCase(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java similarity index 69% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java index edd8a1badc44..8a4e9bd517ee 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferState.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Represents data transfer run state.
  * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.TransferState} */ -public enum TransferState - implements com.google.protobuf.ProtocolMessageEnum { +public enum TransferState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * State placeholder (0).
    * 
@@ -21,6 +39,8 @@ public enum TransferState */ TRANSFER_STATE_UNSPECIFIED(0), /** + * + * *
    * Data transfer is scheduled and is waiting to be picked up by
    * data transfer backend (2).
@@ -30,6 +50,8 @@ public enum TransferState
    */
   PENDING(2),
   /**
+   *
+   *
    * 
    * Data transfer is in progress (3).
    * 
@@ -38,6 +60,8 @@ public enum TransferState */ RUNNING(3), /** + * + * *
    * Data transfer completed successfully (4).
    * 
@@ -46,6 +70,8 @@ public enum TransferState */ SUCCEEDED(4), /** + * + * *
    * Data transfer failed (5).
    * 
@@ -54,6 +80,8 @@ public enum TransferState */ FAILED(5), /** + * + * *
    * Data transfer is cancelled (6).
    * 
@@ -65,6 +93,8 @@ public enum TransferState ; /** + * + * *
    * State placeholder (0).
    * 
@@ -73,6 +103,8 @@ public enum TransferState */ public static final int TRANSFER_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Data transfer is scheduled and is waiting to be picked up by
    * data transfer backend (2).
@@ -82,6 +114,8 @@ public enum TransferState
    */
   public static final int PENDING_VALUE = 2;
   /**
+   *
+   *
    * 
    * Data transfer is in progress (3).
    * 
@@ -90,6 +124,8 @@ public enum TransferState */ public static final int RUNNING_VALUE = 3; /** + * + * *
    * Data transfer completed successfully (4).
    * 
@@ -98,6 +134,8 @@ public enum TransferState */ public static final int SUCCEEDED_VALUE = 4; /** + * + * *
    * Data transfer failed (5).
    * 
@@ -106,6 +144,8 @@ public enum TransferState */ public static final int FAILED_VALUE = 5; /** + * + * *
    * Data transfer is cancelled (6).
    * 
@@ -114,7 +154,6 @@ public enum TransferState */ public static final int CANCELLED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -139,52 +178,57 @@ public static TransferState valueOf(int value) { */ public static TransferState forNumber(int value) { switch (value) { - case 0: return TRANSFER_STATE_UNSPECIFIED; - case 2: return PENDING; - case 3: return RUNNING; - case 4: return SUCCEEDED; - case 5: return FAILED; - case 6: return CANCELLED; - default: return null; + case 0: + return TRANSFER_STATE_UNSPECIFIED; + case 2: + return PENDING; + case 3: + return RUNNING; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + case 6: + return CANCELLED; + 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< - TransferState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransferState findValueByNumber(int number) { - return TransferState.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 TransferState findValueByNumber(int number) { + return TransferState.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.datatransfer.v1.TransferProto.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor() + .getEnumTypes() + .get(1); } private static final TransferState[] VALUES = values(); - public static TransferState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TransferState 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; @@ -200,4 +244,3 @@ private TransferState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datatransfer.v1.TransferState) } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java similarity index 66% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java index f473f00162a2..13f213a67031 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferType.java @@ -1,18 +1,37 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * DEPRECATED. Represents data transfer type.
  * 
* * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.TransferType} */ -@java.lang.Deprecated public enum TransferType - implements com.google.protobuf.ProtocolMessageEnum { +@java.lang.Deprecated +public enum TransferType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Invalid or Unknown transfer type placeholder.
    * 
@@ -21,6 +40,8 @@ */ TRANSFER_TYPE_UNSPECIFIED(0), /** + * + * *
    * Batch data transfer.
    * 
@@ -29,6 +50,8 @@ */ BATCH(1), /** + * + * *
    * Streaming data transfer. Streaming data source currently doesn't
    * support multiple transfer configs per project.
@@ -41,6 +64,8 @@
   ;
 
   /**
+   *
+   *
    * 
    * Invalid or Unknown transfer type placeholder.
    * 
@@ -49,6 +74,8 @@ */ public static final int TRANSFER_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Batch data transfer.
    * 
@@ -57,6 +84,8 @@ */ public static final int BATCH_VALUE = 1; /** + * + * *
    * Streaming data transfer. Streaming data source currently doesn't
    * support multiple transfer configs per project.
@@ -66,7 +95,6 @@
    */
   public static final int STREAMING_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -91,49 +119,51 @@ public static TransferType valueOf(int value) {
    */
   public static TransferType forNumber(int value) {
     switch (value) {
-      case 0: return TRANSFER_TYPE_UNSPECIFIED;
-      case 1: return BATCH;
-      case 2: return STREAMING;
-      default: return null;
+      case 0:
+        return TRANSFER_TYPE_UNSPECIFIED;
+      case 1:
+        return BATCH;
+      case 2:
+        return STREAMING;
+      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<
-      TransferType> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public TransferType findValueByNumber(int number) {
-            return TransferType.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 TransferType findValueByNumber(int number) {
+          return TransferType.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.datatransfer.v1.TransferProto.getDescriptor().getEnumTypes().get(0);
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor()
+        .getEnumTypes()
+        .get(0);
   }
 
   private static final TransferType[] VALUES = values();
 
-  public static TransferType valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static TransferType 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;
@@ -149,4 +179,3 @@ private TransferType(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datatransfer.v1.TransferType)
 }
-
diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
similarity index 74%
rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
index 5425ab24b9bb..ff8f8a23a67f 100644
--- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java
+++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.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/datatransfer/v1/datatransfer.proto
 
 package com.google.cloud.bigquery.datatransfer.v1;
 
 /**
+ *
+ *
  * 
  * A request to update a transfer configuration. To update the user id of the
  * transfer configuration, authorization info needs to be provided.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest}
  */
-public final class UpdateTransferConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest)
     UpdateTransferConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateTransferConfigRequest.newBuilder() to construct.
   private UpdateTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateTransferConfigRequest() {
     authorizationCode_ = "";
     versionInfo_ = "";
@@ -28,37 +46,43 @@ private UpdateTransferConfigRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateTransferConfigRequest();
   }
 
   @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.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+        .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class);
+            com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class,
+            com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class);
   }
 
   public static final int TRANSFER_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_;
   /**
+   *
+   *
    * 
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the transferConfig field is set. */ @java.lang.Override @@ -66,32 +90,46 @@ public boolean hasTransferConfig() { return transferConfig_ != null; } /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The transferConfig. */ @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { - return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; + return transferConfig_ == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() + : transferConfig_; } /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder + getTransferConfigOrBuilder() { return getTransferConfig(); } public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object authorizationCode_; /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -109,6 +147,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran
    * 
* * string authorization_code = 3; + * * @return The authorizationCode. */ @java.lang.Override @@ -117,14 +156,15 @@ public java.lang.String getAuthorizationCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; } } /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -142,16 +182,15 @@ public java.lang.String getAuthorizationCode() {
    * 
* * string authorization_code = 3; + * * @return The bytes for authorizationCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -162,11 +201,15 @@ public java.lang.String getAuthorizationCode() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -174,11 +217,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -186,11 +233,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -200,6 +250,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VERSION_INFO_FIELD_NUMBER = 5; private volatile java.lang.Object versionInfo_; /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -217,6 +269,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string version_info = 5; + * * @return The versionInfo. */ @java.lang.Override @@ -225,14 +278,15 @@ public java.lang.String getVersionInfo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } } /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -250,16 +304,15 @@ public java.lang.String getVersionInfo() {
    * 
* * string version_info = 5; + * * @return The bytes for versionInfo. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionInfoBytes() { + public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -270,6 +323,8 @@ public java.lang.String getVersionInfo() { public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountName_; /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -282,6 +337,7 @@ public java.lang.String getVersionInfo() {
    * 
* * string service_account_name = 6; + * * @return The serviceAccountName. */ @java.lang.Override @@ -290,14 +346,15 @@ public java.lang.String getServiceAccountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; } } /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -310,16 +367,15 @@ public java.lang.String getServiceAccountName() {
    * 
* * string service_account_name = 6; + * * @return The bytes for serviceAccountName. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { + public com.google.protobuf.ByteString getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -328,6 +384,7 @@ public java.lang.String getServiceAccountName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +396,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 (transferConfig_ != null) { output.writeMessage(1, getTransferConfig()); } @@ -366,15 +422,13 @@ public int getSerializedSize() { size = 0; if (transferConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTransferConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTransferConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authorizationCode_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, versionInfo_); @@ -390,29 +444,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.datatransfer.v1.UpdateTransferConfigRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other = (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) obj; + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other = + (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) obj; if (hasTransferConfig() != other.hasTransferConfig()) return false; if (hasTransferConfig()) { - if (!getTransferConfig() - .equals(other.getTransferConfig())) return false; + if (!getTransferConfig().equals(other.getTransferConfig())) return false; } - if (!getAuthorizationCode() - .equals(other.getAuthorizationCode())) return false; + if (!getAuthorizationCode().equals(other.getAuthorizationCode())) 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 (!getVersionInfo() - .equals(other.getVersionInfo())) return false; - if (!getServiceAccountName() - .equals(other.getServiceAccountName())) return false; + if (!getVersionInfo().equals(other.getVersionInfo())) return false; + if (!getServiceAccountName().equals(other.getServiceAccountName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -444,96 +494,105 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest + 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.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest 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.datatransfer.v1.UpdateTransferConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest 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; } /** + * + * *
    * A request to update a transfer configuration. To update the user id of the
    * transfer configuration, authorization info needs to be provided.
@@ -541,33 +600,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest}
    */
-  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.datatransfer.v1.UpdateTransferConfigRequest)
       com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class);
+              com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class,
+              com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.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();
@@ -593,14 +652,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
+          .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.getDefaultInstance();
+    public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -614,7 +675,8 @@ public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest bui
 
     @java.lang.Override
     public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest buildPartial() {
-      com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest(this);
+      com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest result =
+          new com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest(this);
       if (transferConfigBuilder_ == null) {
         result.transferConfig_ = transferConfig_;
       } else {
@@ -636,46 +698,51 @@ public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest bui
     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.datatransfer.v1.UpdateTransferConfigRequest) {
-        return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest)other);
+        return mergeFrom(
+            (com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other) {
-      if (other == com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest other) {
+      if (other
+          == com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest
+              .getDefaultInstance()) return this;
       if (other.hasTransferConfig()) {
         mergeTransferConfig(other.getTransferConfig());
       }
@@ -720,41 +787,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getTransferConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 10
-            case 26: {
-              authorizationCode_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 34
-            case 42: {
-              versionInfo_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 42
-            case 50: {
-              serviceAccountName_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getTransferConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 10
+            case 26:
+              {
+                authorizationCode_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 34
+            case 42:
+              {
+                versionInfo_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 42
+            case 50:
+              {
+                serviceAccountName_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 50
+            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) {
@@ -767,41 +836,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.bigquery.datatransfer.v1.TransferConfig transferConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> transferConfigBuilder_;
+            com.google.cloud.bigquery.datatransfer.v1.TransferConfig,
+            com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder,
+            com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>
+        transferConfigBuilder_;
     /**
+     *
+     *
      * 
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the transferConfig field is set. */ public boolean hasTransferConfig() { return transferConfigBuilder_ != null || transferConfig_ != null; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The transferConfig. */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig() { if (transferConfigBuilder_ == null) { - return transferConfig_ == null ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; + return transferConfig_ == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() + : transferConfig_; } else { return transferConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder setTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,11 +904,15 @@ public Builder setTransferConfig(com.google.cloud.bigquery.datatransfer.v1.Trans return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTransferConfig( com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder builderForValue) { @@ -833,17 +926,24 @@ public Builder setTransferConfig( return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTransferConfig(com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { + public Builder mergeTransferConfig( + com.google.cloud.bigquery.datatransfer.v1.TransferConfig value) { if (transferConfigBuilder_ == null) { if (transferConfig_ != null) { transferConfig_ = - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.newBuilder(transferConfig_) + .mergeFrom(value) + .buildPartial(); } else { transferConfig_ = value; } @@ -855,11 +955,15 @@ public Builder mergeTransferConfig(com.google.cloud.bigquery.datatransfer.v1.Tra return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTransferConfig() { if (transferConfigBuilder_ == null) { @@ -873,48 +977,66 @@ public Builder clearTransferConfig() { return this; } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder getTransferConfigBuilder() { - + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder + getTransferConfigBuilder() { + onChanged(); return getTransferConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder() { + public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder + getTransferConfigOrBuilder() { if (transferConfigBuilder_ != null) { return transferConfigBuilder_.getMessageOrBuilder(); } else { - return transferConfig_ == null ? - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() : transferConfig_; + return transferConfig_ == null + ? com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance() + : transferConfig_; } } /** + * + * *
      * Required. Data transfer configuration to create.
      * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder> getTransferConfigFieldBuilder() { if (transferConfigBuilder_ == null) { - transferConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.datatransfer.v1.TransferConfig, com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( - getTransferConfig(), - getParentForChildren(), - isClean()); + transferConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.TransferConfig, + com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder, + com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder>( + getTransferConfig(), getParentForChildren(), isClean()); transferConfig_ = null; } return transferConfigBuilder_; @@ -922,6 +1044,8 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran private java.lang.Object authorizationCode_ = ""; /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -939,13 +1063,13 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTran
      * 
* * string authorization_code = 3; + * * @return The authorizationCode. */ public java.lang.String getAuthorizationCode() { java.lang.Object ref = authorizationCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationCode_ = s; return s; @@ -954,6 +1078,8 @@ public java.lang.String getAuthorizationCode() { } } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -971,15 +1097,14 @@ public java.lang.String getAuthorizationCode() {
      * 
* * string authorization_code = 3; + * * @return The bytes for authorizationCode. */ - public com.google.protobuf.ByteString - getAuthorizationCodeBytes() { + public com.google.protobuf.ByteString getAuthorizationCodeBytes() { java.lang.Object ref = authorizationCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizationCode_ = b; return b; } else { @@ -987,6 +1112,8 @@ public java.lang.String getAuthorizationCode() { } } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1004,20 +1131,22 @@ public java.lang.String getAuthorizationCode() {
      * 
* * string authorization_code = 3; + * * @param value The authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCode( - java.lang.String value) { + public Builder setAuthorizationCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizationCode_ = value; onChanged(); return this; } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1035,15 +1164,18 @@ public Builder setAuthorizationCode(
      * 
* * string authorization_code = 3; + * * @return This builder for chaining. */ public Builder clearAuthorizationCode() { - + authorizationCode_ = getDefaultInstance().getAuthorizationCode(); onChanged(); return this; } /** + * + * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1061,16 +1193,16 @@ public Builder clearAuthorizationCode() {
      * 
* * string authorization_code = 3; + * * @param value The bytes for authorizationCode to set. * @return This builder for chaining. */ - public Builder setAuthorizationCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationCode_ = value; onChanged(); return this; @@ -1078,39 +1210,55 @@ public Builder setAuthorizationCodeBytes( 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. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.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. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1126,14 +1274,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1144,17 +1294,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1166,11 +1319,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1184,48 +1340,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.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. Required list of fields to be updated in this request.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.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_; @@ -1233,6 +1402,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object versionInfo_ = ""; /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1250,13 +1421,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string version_info = 5; + * * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; @@ -1265,6 +1436,8 @@ public java.lang.String getVersionInfo() { } } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1282,15 +1455,14 @@ public java.lang.String getVersionInfo() {
      * 
* * string version_info = 5; + * * @return The bytes for versionInfo. */ - public com.google.protobuf.ByteString - getVersionInfoBytes() { + public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); versionInfo_ = b; return b; } else { @@ -1298,6 +1470,8 @@ public java.lang.String getVersionInfo() { } } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1315,20 +1489,22 @@ public java.lang.String getVersionInfo() {
      * 
* * string version_info = 5; + * * @param value The versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfo( - java.lang.String value) { + public Builder setVersionInfo(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + versionInfo_ = value; onChanged(); return this; } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1346,15 +1522,18 @@ public Builder setVersionInfo(
      * 
* * string version_info = 5; + * * @return This builder for chaining. */ public Builder clearVersionInfo() { - + versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** + * + * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1372,16 +1551,16 @@ public Builder clearVersionInfo() {
      * 
* * string version_info = 5; + * * @param value The bytes for versionInfo to set. * @return This builder for chaining. */ - public Builder setVersionInfoBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + versionInfo_ = value; onChanged(); return this; @@ -1389,6 +1568,8 @@ public Builder setVersionInfoBytes( private java.lang.Object serviceAccountName_ = ""; /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1401,13 +1582,13 @@ public Builder setVersionInfoBytes(
      * 
* * string service_account_name = 6; + * * @return The serviceAccountName. */ public java.lang.String getServiceAccountName() { java.lang.Object ref = serviceAccountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountName_ = s; return s; @@ -1416,6 +1597,8 @@ public java.lang.String getServiceAccountName() { } } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1428,15 +1611,14 @@ public java.lang.String getServiceAccountName() {
      * 
* * string service_account_name = 6; + * * @return The bytes for serviceAccountName. */ - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { + public com.google.protobuf.ByteString getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountName_ = b; return b; } else { @@ -1444,6 +1626,8 @@ public java.lang.String getServiceAccountName() { } } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1456,20 +1640,22 @@ public java.lang.String getServiceAccountName() {
      * 
* * string service_account_name = 6; + * * @param value The serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountName( - java.lang.String value) { + public Builder setServiceAccountName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountName_ = value; onChanged(); return this; } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1482,15 +1668,18 @@ public Builder setServiceAccountName(
      * 
* * string service_account_name = 6; + * * @return This builder for chaining. */ public Builder clearServiceAccountName() { - + serviceAccountName_ = getDefaultInstance().getServiceAccountName(); onChanged(); return this; } /** + * + * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1503,23 +1692,23 @@ public Builder clearServiceAccountName() {
      * 
* * string service_account_name = 6; + * * @param value The bytes for serviceAccountName to set. * @return This builder for chaining. */ - public Builder setServiceAccountNameBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1529,41 +1718,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) - private static final com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest(); } - public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest getDefaultInstance() { + public static com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTransferConfigRequest 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 UpdateTransferConfigRequest 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; @@ -1575,9 +1766,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java similarity index 82% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java index 484a43208fa6..ab4521b84ba7 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/datatransfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface UpdateTransferConfigRequestOrBuilder extends +public interface UpdateTransferConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the transferConfig field is set. */ boolean hasTransferConfig(); /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The transferConfig. */ com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(); /** + * + * *
    * Required. Data transfer configuration to create.
    * 
* - * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder(); /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -52,10 +84,13 @@ public interface UpdateTransferConfigRequestOrBuilder extends
    * 
* * string authorization_code = 3; + * * @return The authorizationCode. */ java.lang.String getAuthorizationCode(); /** + * + * *
    * Optional OAuth2 authorization code to use with this transfer configuration.
    * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -73,39 +108,52 @@ public interface UpdateTransferConfigRequestOrBuilder extends
    * 
* * string authorization_code = 3; + * * @return The bytes for authorizationCode. */ - com.google.protobuf.ByteString - getAuthorizationCodeBytes(); + com.google.protobuf.ByteString getAuthorizationCodeBytes(); /** + * + * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Required list of fields to be updated in this request.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -123,10 +171,13 @@ public interface UpdateTransferConfigRequestOrBuilder extends
    * 
* * string version_info = 5; + * * @return The versionInfo. */ java.lang.String getVersionInfo(); /** + * + * *
    * Optional version info. This is required only if
    * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -144,12 +195,14 @@ public interface UpdateTransferConfigRequestOrBuilder extends
    * 
* * string version_info = 5; + * * @return The bytes for versionInfo. */ - com.google.protobuf.ByteString - getVersionInfoBytes(); + com.google.protobuf.ByteString getVersionInfoBytes(); /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -162,10 +215,13 @@ public interface UpdateTransferConfigRequestOrBuilder extends
    * 
* * string service_account_name = 6; + * * @return The serviceAccountName. */ java.lang.String getServiceAccountName(); /** + * + * *
    * Optional service account name. If this field is set, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -178,8 +234,8 @@ public interface UpdateTransferConfigRequestOrBuilder extends
    * 
* * string service_account_name = 6; + * * @return The bytes for serviceAccountName. */ - com.google.protobuf.ByteString - getServiceAccountNameBytes(); + com.google.protobuf.ByteString getServiceAccountNameBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java similarity index 66% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java index 74c5ceb8e4e4..127ccc9f62fc 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfo.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; /** + * + * *
  * Information about a user.
  * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UserInfo} */ -public final class UserInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UserInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.UserInfo) UserInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UserInfo.newBuilder() to construct. private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UserInfo() { email_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserInfo(); } @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.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, + com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); } private int bitField0_; public static final int EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object email_; /** + * + * *
    * E-mail address of the user.
    * 
* * optional string email = 1; + * * @return Whether the email field is set. */ @java.lang.Override @@ -64,11 +86,14 @@ public boolean hasEmail() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * E-mail address of the user.
    * 
* * optional string email = 1; + * * @return The email. */ @java.lang.Override @@ -77,29 +102,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * E-mail address of the user.
    * 
* * optional string email = 1; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -108,6 +133,7 @@ public java.lang.String getEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +145,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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -144,17 +169,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.datatransfer.v1.UserInfo)) { return super.equals(obj); } - com.google.cloud.bigquery.datatransfer.v1.UserInfo other = (com.google.cloud.bigquery.datatransfer.v1.UserInfo) obj; + com.google.cloud.bigquery.datatransfer.v1.UserInfo other = + (com.google.cloud.bigquery.datatransfer.v1.UserInfo) obj; if (hasEmail() != other.hasEmail()) return false; if (hasEmail()) { - if (!getEmail() - .equals(other.getEmail())) return false; + if (!getEmail().equals(other.getEmail())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -177,129 +202,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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.datatransfer.v1.UserInfo 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; } /** + * + * *
    * Information about a user.
    * 
* * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UserInfo} */ - 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.datatransfer.v1.UserInfo) com.google.cloud.bigquery.datatransfer.v1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); + com.google.cloud.bigquery.datatransfer.v1.UserInfo.class, + com.google.cloud.bigquery.datatransfer.v1.UserInfo.Builder.class); } // Construct using com.google.cloud.bigquery.datatransfer.v1.UserInfo.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(); @@ -309,9 +340,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; } @java.lang.Override @@ -330,7 +361,8 @@ public com.google.cloud.bigquery.datatransfer.v1.UserInfo build() { @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.UserInfo buildPartial() { - com.google.cloud.bigquery.datatransfer.v1.UserInfo result = new com.google.cloud.bigquery.datatransfer.v1.UserInfo(this); + com.google.cloud.bigquery.datatransfer.v1.UserInfo result = + new com.google.cloud.bigquery.datatransfer.v1.UserInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -346,38 +378,39 @@ public com.google.cloud.bigquery.datatransfer.v1.UserInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.UserInfo) { - return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.UserInfo)other); + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.UserInfo) other); } else { super.mergeFrom(other); return this; @@ -385,7 +418,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.UserInfo other) { - if (other == com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.datatransfer.v1.UserInfo.getDefaultInstance()) + return this; if (other.hasEmail()) { bitField0_ |= 0x00000001; email_ = other.email_; @@ -417,17 +451,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + email_ = 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) { @@ -437,33 +473,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object email_ = ""; /** + * + * *
      * E-mail address of the user.
      * 
* * optional string email = 1; + * * @return Whether the email field is set. */ public boolean hasEmail() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * E-mail address of the user.
      * 
* * optional string email = 1; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -472,20 +514,21 @@ public java.lang.String getEmail() { } } /** + * + * *
      * E-mail address of the user.
      * 
* * optional string email = 1; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -493,30 +536,35 @@ public java.lang.String getEmail() { } } /** + * + * *
      * E-mail address of the user.
      * 
* * optional string email = 1; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { + public Builder setEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; email_ = value; onChanged(); return this; } /** + * + * *
      * E-mail address of the user.
      * 
* * optional string email = 1; + * * @return This builder for chaining. */ public Builder clearEmail() { @@ -526,28 +574,30 @@ public Builder clearEmail() { return this; } /** + * + * *
      * E-mail address of the user.
      * 
* * optional string email = 1; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; email_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UserInfo) private static final com.google.cloud.bigquery.datatransfer.v1.UserInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.UserInfo(); } @@ -571,27 +621,27 @@ public static com.google.cloud.bigquery.datatransfer.v1.UserInfo getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfo 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 UserInfo 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; @@ -606,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.datatransfer.v1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java similarity index 52% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java index f25e47beb41c..579781b87c3f 100644 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UserInfoOrBuilder.java @@ -1,38 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/datatransfer/v1/transfer.proto package com.google.cloud.bigquery.datatransfer.v1; -public interface UserInfoOrBuilder extends +public interface UserInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.UserInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * E-mail address of the user.
    * 
* * optional string email = 1; + * * @return Whether the email field is set. */ boolean hasEmail(); /** + * + * *
    * E-mail address of the user.
    * 
* * optional string email = 1; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
    * E-mail address of the user.
    * 
* * optional string email = 1; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); } diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto similarity index 100% rename from owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto rename to java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java b/owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java deleted file mode 100644 index 39dbc75c6e4a..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java +++ /dev/null @@ -1,1583 +0,0 @@ -package com.google.cloud.bigquery.datatransfer.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * This API allows users to manage their data transfers into BigQuery.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DataTransferServiceGrpc { - - private DataTransferServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.datatransfer.v1.DataTransferService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetDataSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataSource", - requestType = com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.DataSource.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataSourceMethod() { - io.grpc.MethodDescriptor getGetDataSourceMethod; - if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getGetDataSourceMethod = DataTransferServiceGrpc.getGetDataSourceMethod) == null) { - DataTransferServiceGrpc.getGetDataSourceMethod = getGetDataSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("GetDataSource")) - .build(); - } - } - } - return getGetDataSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDataSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataSources", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDataSourcesMethod() { - io.grpc.MethodDescriptor getListDataSourcesMethod; - if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListDataSourcesMethod = DataTransferServiceGrpc.getListDataSourcesMethod) == null) { - DataTransferServiceGrpc.getListDataSourcesMethod = getListDataSourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListDataSources")) - .build(); - } - } - } - return getListDataSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTransferConfigMethod() { - io.grpc.MethodDescriptor getCreateTransferConfigMethod; - if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getCreateTransferConfigMethod = DataTransferServiceGrpc.getCreateTransferConfigMethod) == null) { - DataTransferServiceGrpc.getCreateTransferConfigMethod = getCreateTransferConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("CreateTransferConfig")) - .build(); - } - } - } - return getCreateTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateTransferConfigMethod() { - io.grpc.MethodDescriptor getUpdateTransferConfigMethod; - if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getUpdateTransferConfigMethod = DataTransferServiceGrpc.getUpdateTransferConfigMethod) == null) { - DataTransferServiceGrpc.getUpdateTransferConfigMethod = getUpdateTransferConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("UpdateTransferConfig")) - .build(); - } - } - } - return getUpdateTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteTransferConfigMethod() { - io.grpc.MethodDescriptor getDeleteTransferConfigMethod; - if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getDeleteTransferConfigMethod = DataTransferServiceGrpc.getDeleteTransferConfigMethod) == null) { - DataTransferServiceGrpc.getDeleteTransferConfigMethod = getDeleteTransferConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("DeleteTransferConfig")) - .build(); - } - } - } - return getDeleteTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTransferConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransferConfig", - requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransferConfigMethod() { - io.grpc.MethodDescriptor getGetTransferConfigMethod; - if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getGetTransferConfigMethod = DataTransferServiceGrpc.getGetTransferConfigMethod) == null) { - DataTransferServiceGrpc.getGetTransferConfigMethod = getGetTransferConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("GetTransferConfig")) - .build(); - } - } - } - return getGetTransferConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTransferConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTransferConfigs", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTransferConfigsMethod() { - io.grpc.MethodDescriptor getListTransferConfigsMethod; - if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListTransferConfigsMethod = DataTransferServiceGrpc.getListTransferConfigsMethod) == null) { - DataTransferServiceGrpc.getListTransferConfigsMethod = getListTransferConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListTransferConfigs")) - .build(); - } - } - } - return getListTransferConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getScheduleTransferRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ScheduleTransferRuns", - requestType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getScheduleTransferRunsMethod() { - io.grpc.MethodDescriptor getScheduleTransferRunsMethod; - if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getScheduleTransferRunsMethod = DataTransferServiceGrpc.getScheduleTransferRunsMethod) == null) { - DataTransferServiceGrpc.getScheduleTransferRunsMethod = getScheduleTransferRunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScheduleTransferRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ScheduleTransferRuns")) - .build(); - } - } - } - return getScheduleTransferRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartManualTransferRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartManualTransferRuns", - requestType = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartManualTransferRunsMethod() { - io.grpc.MethodDescriptor getStartManualTransferRunsMethod; - if ((getStartManualTransferRunsMethod = DataTransferServiceGrpc.getStartManualTransferRunsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getStartManualTransferRunsMethod = DataTransferServiceGrpc.getStartManualTransferRunsMethod) == null) { - DataTransferServiceGrpc.getStartManualTransferRunsMethod = getStartManualTransferRunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartManualTransferRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("StartManualTransferRuns")) - .build(); - } - } - } - return getStartManualTransferRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTransferRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransferRun", - requestType = com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.TransferRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransferRunMethod() { - io.grpc.MethodDescriptor getGetTransferRunMethod; - if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getGetTransferRunMethod = DataTransferServiceGrpc.getGetTransferRunMethod) == null) { - DataTransferServiceGrpc.getGetTransferRunMethod = getGetTransferRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.TransferRun.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("GetTransferRun")) - .build(); - } - } - } - return getGetTransferRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteTransferRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTransferRun", - requestType = com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteTransferRunMethod() { - io.grpc.MethodDescriptor getDeleteTransferRunMethod; - if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getDeleteTransferRunMethod = DataTransferServiceGrpc.getDeleteTransferRunMethod) == null) { - DataTransferServiceGrpc.getDeleteTransferRunMethod = getDeleteTransferRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTransferRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("DeleteTransferRun")) - .build(); - } - } - } - return getDeleteTransferRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTransferRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTransferRuns", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTransferRunsMethod() { - io.grpc.MethodDescriptor getListTransferRunsMethod; - if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListTransferRunsMethod = DataTransferServiceGrpc.getListTransferRunsMethod) == null) { - DataTransferServiceGrpc.getListTransferRunsMethod = getListTransferRunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListTransferRuns")) - .build(); - } - } - } - return getListTransferRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTransferLogsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTransferLogs", - requestType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTransferLogsMethod() { - io.grpc.MethodDescriptor getListTransferLogsMethod; - if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getListTransferLogsMethod = DataTransferServiceGrpc.getListTransferLogsMethod) == null) { - DataTransferServiceGrpc.getListTransferLogsMethod = getListTransferLogsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferLogs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("ListTransferLogs")) - .build(); - } - } - } - return getListTransferLogsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCheckValidCredsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CheckValidCreds", - requestType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.class, - responseType = com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCheckValidCredsMethod() { - io.grpc.MethodDescriptor getCheckValidCredsMethod; - if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getCheckValidCredsMethod = DataTransferServiceGrpc.getCheckValidCredsMethod) == null) { - DataTransferServiceGrpc.getCheckValidCredsMethod = getCheckValidCredsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckValidCreds")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("CheckValidCreds")) - .build(); - } - } - } - return getCheckValidCredsMethod; - } - - private static volatile io.grpc.MethodDescriptor getEnrollDataSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnrollDataSources", - requestType = com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEnrollDataSourcesMethod() { - io.grpc.MethodDescriptor getEnrollDataSourcesMethod; - if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) == null) { - synchronized (DataTransferServiceGrpc.class) { - if ((getEnrollDataSourcesMethod = DataTransferServiceGrpc.getEnrollDataSourcesMethod) == null) { - DataTransferServiceGrpc.getEnrollDataSourcesMethod = getEnrollDataSourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnrollDataSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataTransferServiceMethodDescriptorSupplier("EnrollDataSources")) - .build(); - } - } - } - return getEnrollDataSourcesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DataTransferServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataTransferServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceStub(channel, callOptions); - } - }; - return DataTransferServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataTransferServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataTransferServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceBlockingStub(channel, callOptions); - } - }; - return DataTransferServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DataTransferServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataTransferServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceFutureStub(channel, callOptions); - } - }; - return DataTransferServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public static abstract class DataTransferServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public void getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataSourceMethod(), responseObserver); - } - - /** - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public void listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataSourcesMethod(), responseObserver); - } - - /** - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public void createTransferConfig(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTransferConfigMethod(), responseObserver); - } - - /** - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public void updateTransferConfig(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTransferConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public void deleteTransferConfig(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTransferConfigMethod(), responseObserver); - } - - /** - *
-     * Returns information about a data transfer config.
-     * 
- */ - public void getTransferConfig(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransferConfigMethod(), responseObserver); - } - - /** - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public void listTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTransferConfigsMethod(), responseObserver); - } - - /** - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public void scheduleTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getScheduleTransferRunsMethod(), responseObserver); - } - - /** - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public void startManualTransferRuns(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartManualTransferRunsMethod(), responseObserver); - } - - /** - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public void getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransferRunMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified transfer run.
-     * 
- */ - public void deleteTransferRun(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTransferRunMethod(), responseObserver); - } - - /** - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public void listTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTransferRunsMethod(), responseObserver); - } - - /** - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public void listTransferLogs(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTransferLogsMethod(), responseObserver); - } - - /** - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public void checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckValidCredsMethod(), responseObserver); - } - - /** - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the
-     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
-     * can be found in the public guide for
-     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
-     * [Data Transfer
-     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public void enrollDataSources(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnrollDataSourcesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetDataSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSource>( - this, METHODID_GET_DATA_SOURCE))) - .addMethod( - getListDataSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse>( - this, METHODID_LIST_DATA_SOURCES))) - .addMethod( - getCreateTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( - this, METHODID_CREATE_TRANSFER_CONFIG))) - .addMethod( - getUpdateTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( - this, METHODID_UPDATE_TRANSFER_CONFIG))) - .addMethod( - getDeleteTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_TRANSFER_CONFIG))) - .addMethod( - getGetTransferConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferConfig>( - this, METHODID_GET_TRANSFER_CONFIG))) - .addMethod( - getListTransferConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse>( - this, METHODID_LIST_TRANSFER_CONFIGS))) - .addMethod( - getScheduleTransferRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse>( - this, METHODID_SCHEDULE_TRANSFER_RUNS))) - .addMethod( - getStartManualTransferRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse>( - this, METHODID_START_MANUAL_TRANSFER_RUNS))) - .addMethod( - getGetTransferRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun>( - this, METHODID_GET_TRANSFER_RUN))) - .addMethod( - getDeleteTransferRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_TRANSFER_RUN))) - .addMethod( - getListTransferRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse>( - this, METHODID_LIST_TRANSFER_RUNS))) - .addMethod( - getListTransferLogsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse>( - this, METHODID_LIST_TRANSFER_LOGS))) - .addMethod( - getCheckValidCredsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest, - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse>( - this, METHODID_CHECK_VALID_CREDS))) - .addMethod( - getEnrollDataSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, - com.google.protobuf.Empty>( - this, METHODID_ENROLL_DATA_SOURCES))) - .build(); - } - } - - /** - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public static final class DataTransferServiceStub extends io.grpc.stub.AbstractAsyncStub { - private DataTransferServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataTransferServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceStub(channel, callOptions); - } - - /** - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public void getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public void listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public void createTransferConfig(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public void updateTransferConfig(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public void deleteTransferConfig(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns information about a data transfer config.
-     * 
- */ - public void getTransferConfig(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public void listTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public void scheduleTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public void startManualTransferRuns(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public void getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified transfer run.
-     * 
- */ - public void deleteTransferRun(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public void listTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public void listTransferLogs(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public void checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the
-     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
-     * can be found in the public guide for
-     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
-     * [Data Transfer
-     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public void enrollDataSources(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public static final class DataTransferServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private DataTransferServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataTransferServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataSourcesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig createTransferConfig(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTransferConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig updateTransferConfig(com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTransferConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public com.google.protobuf.Empty deleteTransferConfig(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTransferConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns information about a data transfer config.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTransferConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse listTransferConfigs(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTransferConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse scheduleTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getScheduleTransferRunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse startManualTransferRuns(com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartManualTransferRunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTransferRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified transfer run.
-     * 
- */ - public com.google.protobuf.Empty deleteTransferRun(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTransferRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse listTransferRuns(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTransferRunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse listTransferLogs(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTransferLogsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCheckValidCredsMethod(), getCallOptions(), request); - } - - /** - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the
-     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
-     * can be found in the public guide for
-     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
-     * [Data Transfer
-     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public com.google.protobuf.Empty enrollDataSources(com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnrollDataSourcesMethod(), getCallOptions(), request); - } - } - - /** - *
-   * This API allows users to manage their data transfers into BigQuery.
-   * 
- */ - public static final class DataTransferServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private DataTransferServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataTransferServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataTransferServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Retrieves a supported data source and returns its settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataSource( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists supported data sources and returns their settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDataSources( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new data transfer configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a data transfer configuration, including any associated transfer
-     * runs and logs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns information about a data transfer config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns information about all transfer configs owned by a project in the
-     * specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTransferConfigs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates transfer runs for a time range [start_time, end_time].
-     * For each date - or whatever granularity the data source supports - in the
-     * range, one transfer run is created.
-     * Note that runs are created per UTC time in the time range.
-     * DEPRECATED: use StartManualTransferRuns instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture scheduleTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Start manual transfer runs to be executed now with schedule_time equal to
-     * current time. The transfer runs can be created for a time range where the
-     * run_time is between start_time (inclusive) and end_time (exclusive), or for
-     * a specific run_time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startManualTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns information about the particular transfer run.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTransferRun( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified transfer run.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteTransferRun( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns information about running and completed transfer runs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns log messages for the transfer run.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTransferLogs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture checkValidCreds( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCheckValidCredsMethod(), getCallOptions()), request); - } - - /** - *
-     * Enroll data sources in a user project. This allows users to create transfer
-     * configurations for these data sources. They will also appear in the
-     * ListDataSources RPC and as such, will appear in the
-     * [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents
-     * can be found in the public guide for
-     * [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and
-     * [Data Transfer
-     * Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture enrollDataSources( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_DATA_SOURCE = 0; - private static final int METHODID_LIST_DATA_SOURCES = 1; - private static final int METHODID_CREATE_TRANSFER_CONFIG = 2; - private static final int METHODID_UPDATE_TRANSFER_CONFIG = 3; - private static final int METHODID_DELETE_TRANSFER_CONFIG = 4; - private static final int METHODID_GET_TRANSFER_CONFIG = 5; - private static final int METHODID_LIST_TRANSFER_CONFIGS = 6; - private static final int METHODID_SCHEDULE_TRANSFER_RUNS = 7; - private static final int METHODID_START_MANUAL_TRANSFER_RUNS = 8; - private static final int METHODID_GET_TRANSFER_RUN = 9; - private static final int METHODID_DELETE_TRANSFER_RUN = 10; - private static final int METHODID_LIST_TRANSFER_RUNS = 11; - private static final int METHODID_LIST_TRANSFER_LOGS = 12; - private static final int METHODID_CHECK_VALID_CREDS = 13; - private static final int METHODID_ENROLL_DATA_SOURCES = 14; - - 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 DataTransferServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DataTransferServiceImplBase 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_GET_DATA_SOURCE: - serviceImpl.getDataSource((com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATA_SOURCES: - serviceImpl.listDataSources((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TRANSFER_CONFIG: - serviceImpl.createTransferConfig((com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_TRANSFER_CONFIG: - serviceImpl.updateTransferConfig((com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TRANSFER_CONFIG: - serviceImpl.deleteTransferConfig((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TRANSFER_CONFIG: - serviceImpl.getTransferConfig((com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TRANSFER_CONFIGS: - serviceImpl.listTransferConfigs((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SCHEDULE_TRANSFER_RUNS: - serviceImpl.scheduleTransferRuns((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_MANUAL_TRANSFER_RUNS: - serviceImpl.startManualTransferRuns((com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TRANSFER_RUN: - serviceImpl.getTransferRun((com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TRANSFER_RUN: - serviceImpl.deleteTransferRun((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TRANSFER_RUNS: - serviceImpl.listTransferRuns((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TRANSFER_LOGS: - serviceImpl.listTransferLogs((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHECK_VALID_CREDS: - serviceImpl.checkValidCreds((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENROLL_DATA_SOURCES: - serviceImpl.enrollDataSources((com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) 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 DataTransferServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataTransferServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataTransferService"); - } - } - - private static final class DataTransferServiceFileDescriptorSupplier - extends DataTransferServiceBaseDescriptorSupplier { - DataTransferServiceFileDescriptorSupplier() {} - } - - private static final class DataTransferServiceMethodDescriptorSupplier - extends DataTransferServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DataTransferServiceMethodDescriptorSupplier(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 (DataTransferServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataTransferServiceFileDescriptorSupplier()) - .addMethod(getGetDataSourceMethod()) - .addMethod(getListDataSourcesMethod()) - .addMethod(getCreateTransferConfigMethod()) - .addMethod(getUpdateTransferConfigMethod()) - .addMethod(getDeleteTransferConfigMethod()) - .addMethod(getGetTransferConfigMethod()) - .addMethod(getListTransferConfigsMethod()) - .addMethod(getScheduleTransferRunsMethod()) - .addMethod(getStartManualTransferRunsMethod()) - .addMethod(getGetTransferRunMethod()) - .addMethod(getDeleteTransferRunMethod()) - .addMethod(getListTransferRunsMethod()) - .addMethod(getListTransferLogsMethod()) - .addMethod(getCheckValidCredsMethod()) - .addMethod(getEnrollDataSourcesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java deleted file mode 100644 index ac13971fb152..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface CheckValidCredsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The data source in the form:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The data source in the form:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java deleted file mode 100644 index c66626a729e5..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface CheckValidCredsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * If set to `true`, the credentials exist and are valid.
-   * 
- * - * bool has_valid_creds = 1; - * @return The hasValidCreds. - */ - boolean getHasValidCreds(); -} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java deleted file mode 100644 index 8d1ede348a91..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.datatransfer.v1; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DataSourceName implements ResourceName { - private static final PathTemplate PROJECT_DATA_SOURCE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/dataSources/{data_source}"); - private static final PathTemplate PROJECT_LOCATION_DATA_SOURCE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/dataSources/{data_source}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String project; - private final String dataSource; - private final String location; - - @Deprecated - protected DataSourceName() { - project = null; - dataSource = null; - location = null; - } - - private DataSourceName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - dataSource = Preconditions.checkNotNull(builder.getDataSource()); - location = null; - pathTemplate = PROJECT_DATA_SOURCE; - } - - private DataSourceName(ProjectLocationDataSourceBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - dataSource = Preconditions.checkNotNull(builder.getDataSource()); - pathTemplate = PROJECT_LOCATION_DATA_SOURCE; - } - - public String getProject() { - return project; - } - - public String getDataSource() { - return dataSource; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newProjectDataSourceBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static ProjectLocationDataSourceBuilder newProjectLocationDataSourceBuilder() { - return new ProjectLocationDataSourceBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DataSourceName of(String project, String dataSource) { - return newBuilder().setProject(project).setDataSource(dataSource).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static DataSourceName ofProjectDataSourceName(String project, String dataSource) { - return newBuilder().setProject(project).setDataSource(dataSource).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static DataSourceName ofProjectLocationDataSourceName( - String project, String location, String dataSource) { - return newProjectLocationDataSourceBuilder() - .setProject(project) - .setLocation(location) - .setDataSource(dataSource) - .build(); - } - - public static String format(String project, String dataSource) { - return newBuilder().setProject(project).setDataSource(dataSource).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectDataSourceName(String project, String dataSource) { - return newBuilder().setProject(project).setDataSource(dataSource).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectLocationDataSourceName( - String project, String location, String dataSource) { - return newProjectLocationDataSourceBuilder() - .setProject(project) - .setLocation(location) - .setDataSource(dataSource) - .build() - .toString(); - } - - public static DataSourceName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (PROJECT_DATA_SOURCE.matches(formattedString)) { - Map matchMap = PROJECT_DATA_SOURCE.match(formattedString); - return ofProjectDataSourceName(matchMap.get("project"), matchMap.get("data_source")); - } else if (PROJECT_LOCATION_DATA_SOURCE.matches(formattedString)) { - Map matchMap = PROJECT_LOCATION_DATA_SOURCE.match(formattedString); - return ofProjectLocationDataSourceName( - matchMap.get("project"), matchMap.get("location"), matchMap.get("data_source")); - } - throw new ValidationException("DataSourceName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DataSourceName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_DATA_SOURCE.matches(formattedString) - || PROJECT_LOCATION_DATA_SOURCE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (dataSource != null) { - fieldMapBuilder.put("data_source", dataSource); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DataSourceName that = ((DataSourceName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.dataSource, that.dataSource) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(dataSource); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/dataSources/{data_source}. */ - public static class Builder { - private String project; - private String dataSource; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getDataSource() { - return dataSource; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setDataSource(String dataSource) { - this.dataSource = dataSource; - return this; - } - - private Builder(DataSourceName dataSourceName) { - Preconditions.checkArgument( - Objects.equals(dataSourceName.pathTemplate, PROJECT_DATA_SOURCE), - "toBuilder is only supported when DataSourceName has the pattern of projects/{project}/dataSources/{data_source}"); - this.project = dataSourceName.project; - this.dataSource = dataSourceName.dataSource; - } - - public DataSourceName build() { - return new DataSourceName(this); - } - } - - /** Builder for projects/{project}/locations/{location}/dataSources/{data_source}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class ProjectLocationDataSourceBuilder { - private String project; - private String location; - private String dataSource; - - protected ProjectLocationDataSourceBuilder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDataSource() { - return dataSource; - } - - public ProjectLocationDataSourceBuilder setProject(String project) { - this.project = project; - return this; - } - - public ProjectLocationDataSourceBuilder setLocation(String location) { - this.location = location; - return this; - } - - public ProjectLocationDataSourceBuilder setDataSource(String dataSource) { - this.dataSource = dataSource; - return this; - } - - public DataSourceName build() { - return new DataSourceName(this); - } - } -} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java deleted file mode 100644 index e77ee7a1efa9..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java +++ /dev/null @@ -1,597 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public final class DataTransferProto { - private DataTransferProto() {} - 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_datatransfer_v1_DataSourceParameter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/bigquery/datatransfer/v1/" + - "datatransfer.proto\022%google.cloud.bigquer" + - "y.datatransfer.v1\032\034google/api/annotation" + - "s.proto\032\027google/api/client.proto\032\037google" + - "/api/field_behavior.proto\032\031google/api/re" + - "source.proto\0324google/cloud/bigquery/data" + - "transfer/v1/transfer.proto\032\036google/proto" + - "buf/duration.proto\032\033google/protobuf/empt" + - "y.proto\032 google/protobuf/field_mask.prot" + - "o\032\037google/protobuf/timestamp.proto\032\036goog" + - "le/protobuf/wrappers.proto\"\205\005\n\023DataSourc" + - "eParameter\022\020\n\010param_id\030\001 \001(\t\022\024\n\014display_" + - "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022M\n\004type\030" + - "\004 \001(\0162?.google.cloud.bigquery.datatransf" + - "er.v1.DataSourceParameter.Type\022\020\n\010requir" + - "ed\030\005 \001(\010\022\020\n\010repeated\030\006 \001(\010\022\030\n\020validation" + - "_regex\030\007 \001(\t\022\026\n\016allowed_values\030\010 \003(\t\022/\n\t" + - "min_value\030\t \001(\0132\034.google.protobuf.Double" + - "Value\022/\n\tmax_value\030\n \001(\0132\034.google.protob" + - "uf.DoubleValue\022J\n\006fields\030\013 \003(\0132:.google." + - "cloud.bigquery.datatransfer.v1.DataSourc" + - "eParameter\022\036\n\026validation_description\030\014 \001" + - "(\t\022\033\n\023validation_help_url\030\r \001(\t\022\021\n\timmut" + - "able\030\016 \001(\010\022\017\n\007recurse\030\017 \001(\010\022\022\n\ndeprecate" + - "d\030\024 \001(\010\"i\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n" + - "\006STRING\020\001\022\013\n\007INTEGER\020\002\022\n\n\006DOUBLE\020\003\022\013\n\007BO" + - "OLEAN\020\004\022\n\n\006RECORD\020\005\022\r\n\tPLUS_PAGE\020\006\"\234\t\n\nD" + - "ataSource\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016data_sou" + - "rce_id\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\023\n\013de" + - "scription\030\004 \001(\t\022\021\n\tclient_id\030\005 \001(\t\022\016\n\006sc" + - "opes\030\006 \003(\t\022N\n\rtransfer_type\030\007 \001(\01623.goog" + - "le.cloud.bigquery.datatransfer.v1.Transf" + - "erTypeB\002\030\001\022\'\n\033supports_multiple_transfer" + - "s\030\010 \001(\010B\002\030\001\022\037\n\027update_deadline_seconds\030\t" + - " \001(\005\022\030\n\020default_schedule\030\n \001(\t\022 \n\030suppor" + - "ts_custom_schedule\030\013 \001(\010\022N\n\nparameters\030\014" + - " \003(\0132:.google.cloud.bigquery.datatransfe" + - "r.v1.DataSourceParameter\022\020\n\010help_url\030\r \001" + - "(\t\022_\n\022authorization_type\030\016 \001(\0162C.google." + - "cloud.bigquery.datatransfer.v1.DataSourc" + - "e.AuthorizationType\022\\\n\021data_refresh_type" + - "\030\017 \001(\0162A.google.cloud.bigquery.datatrans" + - "fer.v1.DataSource.DataRefreshType\022(\n def" + - "ault_data_refresh_window_days\030\020 \001(\005\022\034\n\024m" + - "anual_runs_disabled\030\021 \001(\010\022<\n\031minimum_sch" + - "edule_interval\030\022 \001(\0132\031.google.protobuf.D" + - "uration\"\212\001\n\021AuthorizationType\022\"\n\036AUTHORI" + - "ZATION_TYPE_UNSPECIFIED\020\000\022\026\n\022AUTHORIZATI" + - "ON_CODE\020\001\022\"\n\036GOOGLE_PLUS_AUTHORIZATION_C" + - "ODE\020\002\022\025\n\021FIRST_PARTY_OAUTH\020\003\"c\n\017DataRefr" + - "eshType\022!\n\035DATA_REFRESH_TYPE_UNSPECIFIED" + - "\020\000\022\022\n\016SLIDING_WINDOW\020\001\022\031\n\025CUSTOM_SLIDING" + - "_WINDOW\020\002:\245\001\352A\241\001\n.bigquerydatatransfer.g" + - "oogleapis.com/DataSource\022,projects/{proj" + - "ect}/dataSources/{data_source}\022Aprojects" + - "/{project}/locations/{location}/dataSour" + - "ces/{data_source}\"\\\n\024GetDataSourceReques" + - "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.bigquerydatatra" + - "nsfer.googleapis.com/DataSource\"\207\001\n\026List" + - "DataSourcesRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" + - "A0\022.bigquerydatatransfer.googleapis.com/" + - "DataSource\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_s" + - "ize\030\004 \001(\005\"\200\001\n\027ListDataSourcesResponse\022G\n" + - "\014data_sources\030\001 \003(\01321.google.cloud.bigqu" + - "ery.datatransfer.v1.DataSource\022\034\n\017next_p" + - "age_token\030\002 \001(\tB\003\340A\003\"\216\002\n\033CreateTransferC" + - "onfigRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bi" + - "gquerydatatransfer.googleapis.com/Transf" + - "erConfig\022S\n\017transfer_config\030\002 \001(\01325.goog" + - "le.cloud.bigquery.datatransfer.v1.Transf" + - "erConfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(" + - "\t\022\024\n\014version_info\030\005 \001(\t\022\034\n\024service_accou" + - "nt_name\030\006 \001(\t\"\370\001\n\033UpdateTransferConfigRe" + - "quest\022S\n\017transfer_config\030\001 \001(\01325.google." + - "cloud.bigquery.datatransfer.v1.TransferC" + - "onfigB\003\340A\002\022\032\n\022authorization_code\030\003 \001(\t\0224" + - "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\002\022\024\n\014version_info\030\005 \001(\t\022\034\n\024se" + - "rvice_account_name\030\006 \001(\t\"d\n\030GetTransferC" + - "onfigRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2bigq" + - "uerydatatransfer.googleapis.com/Transfer" + - "Config\"g\n\033DeleteTransferConfigRequest\022H\n" + - "\004name\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatransfe" + - "r.googleapis.com/TransferConfig\"V\n\025GetTr" + - "ansferRunRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'" + - "bigquerydatatransfer.googleapis.com/Run\"" + - "Y\n\030DeleteTransferRunRequest\022=\n\004name\030\001 \001(" + - "\tB/\340A\002\372A)\n\'bigquerydatatransfer.googleap" + - "is.com/Run\"\250\001\n\032ListTransferConfigsReques" + - "t\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222bigquerydatat" + - "ransfer.googleapis.com/TransferConfig\022\027\n" + - "\017data_source_ids\030\002 \003(\t\022\022\n\npage_token\030\003 \001" + - "(\t\022\021\n\tpage_size\030\004 \001(\005\"\221\001\n\033ListTransferCo" + - "nfigsResponse\022T\n\020transfer_configs\030\001 \003(\0132" + - "5.google.cloud.bigquery.datatransfer.v1." + - "TransferConfigB\003\340A\003\022\034\n\017next_page_token\030\002" + - " \001(\tB\003\340A\003\"\336\002\n\027ListTransferRunsRequest\022?\n" + - "\006parent\030\001 \001(\tB/\340A\002\372A)\022\'bigquerydatatrans" + - "fer.googleapis.com/Run\022D\n\006states\030\002 \003(\01624" + - ".google.cloud.bigquery.datatransfer.v1.T" + - "ransferState\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage" + - "_size\030\004 \001(\005\022^\n\013run_attempt\030\005 \001(\0162I.googl" + - "e.cloud.bigquery.datatransfer.v1.ListTra" + - "nsferRunsRequest.RunAttempt\"5\n\nRunAttemp" + - "t\022\033\n\027RUN_ATTEMPT_UNSPECIFIED\020\000\022\n\n\006LATEST" + - "\020\001\"\210\001\n\030ListTransferRunsResponse\022N\n\rtrans" + - "fer_runs\030\001 \003(\01322.google.cloud.bigquery.d" + - "atatransfer.v1.TransferRunB\003\340A\003\022\034\n\017next_" + - "page_token\030\002 \001(\tB\003\340A\003\"\340\001\n\027ListTransferLo" + - "gsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'bigqu" + - "erydatatransfer.googleapis.com/Run\022\022\n\npa" + - "ge_token\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\022]\n\rmes" + - "sage_types\030\006 \003(\0162F.google.cloud.bigquery" + - ".datatransfer.v1.TransferMessage.Message" + - "Severity\"\220\001\n\030ListTransferLogsResponse\022V\n" + - "\021transfer_messages\030\001 \003(\01326.google.cloud." + - "bigquery.datatransfer.v1.TransferMessage" + - "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"^\n\026C" + - "heckValidCredsRequest\022D\n\004name\030\001 \001(\tB6\340A\002" + - "\372A0\n.bigquerydatatransfer.googleapis.com" + - "/DataSource\"2\n\027CheckValidCredsResponse\022\027" + - "\n\017has_valid_creds\030\001 \001(\010\"\321\001\n\033ScheduleTran" + - "sferRunsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\n" + - "2bigquerydatatransfer.googleapis.com/Tra" + - "nsferConfig\0223\n\nstart_time\030\002 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\002\0221\n\010end_time\030\003 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\002\"`\n\034S" + - "cheduleTransferRunsResponse\022@\n\004runs\030\001 \003(" + - "\01322.google.cloud.bigquery.datatransfer.v" + - "1.TransferRun\"\207\003\n\036StartManualTransferRun" + - "sRequest\022G\n\006parent\030\001 \001(\tB7\372A4\n2bigqueryd" + - "atatransfer.googleapis.com/TransferConfi" + - "g\022o\n\024requested_time_range\030\003 \001(\0132O.google" + - ".cloud.bigquery.datatransfer.v1.StartMan" + - "ualTransferRunsRequest.TimeRangeH\000\0228\n\022re" + - "quested_run_time\030\004 \001(\0132\032.google.protobuf" + - ".TimestampH\000\032i\n\tTimeRange\022.\n\nstart_time\030" + - "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\006\n\004time\"c\n\037StartManualTransferRunsRespon" + - "se\022@\n\004runs\030\001 \003(\01322.google.cloud.bigquery" + - ".datatransfer.v1.TransferRun\"A\n\030EnrollDa" + - "taSourcesRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017data_s" + - "ource_ids\030\002 \003(\t2\240!\n\023DataTransferService\022" + - "\346\001\n\rGetDataSource\022;.google.cloud.bigquer" + - "y.datatransfer.v1.GetDataSourceRequest\0321" + - ".google.cloud.bigquery.datatransfer.v1.D" + - "ataSource\"e\202\323\344\223\002X\022//v1/{name=projects/*/" + - "locations/*/dataSources/*}Z%\022#/v1/{name=" + - "projects/*/dataSources/*}\332A\004name\022\371\001\n\017Lis" + - "tDataSources\022=.google.cloud.bigquery.dat" + - "atransfer.v1.ListDataSourcesRequest\032>.go" + - "ogle.cloud.bigquery.datatransfer.v1.List" + - "DataSourcesResponse\"g\202\323\344\223\002X\022//v1/{parent" + - "=projects/*/locations/*}/dataSourcesZ%\022#" + - "/v1/{parent=projects/*}/dataSources\332A\006pa" + - "rent\022\266\002\n\024CreateTransferConfig\022B.google.c" + - "loud.bigquery.datatransfer.v1.CreateTran" + - "sferConfigRequest\0325.google.cloud.bigquer" + - "y.datatransfer.v1.TransferConfig\"\242\001\202\323\344\223\002" + - "\202\001\"3/v1/{parent=projects/*/locations/*}/" + - "transferConfigs:\017transfer_configZ:\"\'/v1/" + - "{parent=projects/*}/transferConfigs:\017tra" + - "nsfer_config\332A\026parent,transfer_config\022\333\002" + - "\n\024UpdateTransferConfig\022B.google.cloud.bi" + - "gquery.datatransfer.v1.UpdateTransferCon" + - "figRequest\0325.google.cloud.bigquery.datat" + - "ransfer.v1.TransferConfig\"\307\001\202\323\344\223\002\242\0012C/v1" + - "/{transfer_config.name=projects/*/locati" + - "ons/*/transferConfigs/*}:\017transfer_confi" + - "gZJ27/v1/{transfer_config.name=projects/" + - "*/transferConfigs/*}:\017transfer_config\332A\033" + - "transfer_config,update_mask\022\341\001\n\024DeleteTr" + - "ansferConfig\022B.google.cloud.bigquery.dat" + - "atransfer.v1.DeleteTransferConfigRequest" + - "\032\026.google.protobuf.Empty\"m\202\323\344\223\002`*3/v1/{n" + - "ame=projects/*/locations/*/transferConfi" + - "gs/*}Z)*\'/v1/{name=projects/*/transferCo" + - "nfigs/*}\332A\004name\022\372\001\n\021GetTransferConfig\022?." + - "google.cloud.bigquery.datatransfer.v1.Ge" + - "tTransferConfigRequest\0325.google.cloud.bi" + - "gquery.datatransfer.v1.TransferConfig\"m\202" + - "\323\344\223\002`\0223/v1/{name=projects/*/locations/*/" + - "transferConfigs/*}Z)\022\'/v1/{name=projects" + - "/*/transferConfigs/*}\332A\004name\022\215\002\n\023ListTra" + - "nsferConfigs\022A.google.cloud.bigquery.dat" + - "atransfer.v1.ListTransferConfigsRequest\032" + - "B.google.cloud.bigquery.datatransfer.v1." + - "ListTransferConfigsResponse\"o\202\323\344\223\002`\0223/v1" + - "/{parent=projects/*/locations/*}/transfe" + - "rConfigsZ)\022\'/v1/{parent=projects/*}/tran" + - "sferConfigs\332A\006parent\022\315\002\n\024ScheduleTransfe" + - "rRuns\022B.google.cloud.bigquery.datatransf" + - "er.v1.ScheduleTransferRunsRequest\032C.goog" + - "le.cloud.bigquery.datatransfer.v1.Schedu" + - "leTransferRunsResponse\"\253\001\210\002\001\202\323\344\223\002\204\001\"B/v1" + - "/{parent=projects/*/locations/*/transfer" + - "Configs/*}:scheduleRuns:\001*Z;\"6/v1/{paren" + - "t=projects/*/transferConfigs/*}:schedule" + - "Runs:\001*\332A\032parent,start_time,end_time\022\274\002\n" + - "\027StartManualTransferRuns\022E.google.cloud." + - "bigquery.datatransfer.v1.StartManualTran" + - "sferRunsRequest\032F.google.cloud.bigquery." + - "datatransfer.v1.StartManualTransferRunsR" + - "esponse\"\221\001\202\323\344\223\002\212\001\"E/v1/{parent=projects/" + - "*/locations/*/transferConfigs/*}:startMa" + - "nualRuns:\001*Z>\"9/v1/{parent=projects/*/tr" + - "ansferConfigs/*}:startManualRuns:\001*\022\377\001\n\016" + - "GetTransferRun\022<.google.cloud.bigquery.d" + - "atatransfer.v1.GetTransferRunRequest\0322.g" + - "oogle.cloud.bigquery.datatransfer.v1.Tra" + - "nsferRun\"{\202\323\344\223\002n\022:/v1/{name=projects/*/l" + - "ocations/*/transferConfigs/*/runs/*}Z0\022." + - "/v1/{name=projects/*/transferConfigs/*/r" + - "uns/*}\332A\004name\022\351\001\n\021DeleteTransferRun\022?.go" + - "ogle.cloud.bigquery.datatransfer.v1.Dele" + - "teTransferRunRequest\032\026.google.protobuf.E" + - "mpty\"{\202\323\344\223\002n*:/v1/{name=projects/*/locat" + - "ions/*/transferConfigs/*/runs/*}Z0*./v1/" + - "{name=projects/*/transferConfigs/*/runs/" + - "*}\332A\004name\022\222\002\n\020ListTransferRuns\022>.google." + - "cloud.bigquery.datatransfer.v1.ListTrans" + - "ferRunsRequest\032?.google.cloud.bigquery.d" + - "atatransfer.v1.ListTransferRunsResponse\"" + - "}\202\323\344\223\002n\022:/v1/{parent=projects/*/location" + - "s/*/transferConfigs/*}/runsZ0\022./v1/{pare" + - "nt=projects/*/transferConfigs/*}/runs\332A\006" + - "parent\022\262\002\n\020ListTransferLogs\022>.google.clo" + - "ud.bigquery.datatransfer.v1.ListTransfer" + - "LogsRequest\032?.google.cloud.bigquery.data" + - "transfer.v1.ListTransferLogsResponse\"\234\001\202" + - "\323\344\223\002\214\001\022I/v1/{parent=projects/*/locations" + - "/*/transferConfigs/*/runs/*}/transferLog" + - "sZ?\022=/v1/{parent=projects/*/transferConf" + - "igs/*/runs/*}/transferLogs\332A\006parent\022\236\002\n\017" + - "CheckValidCreds\022=.google.cloud.bigquery." + - "datatransfer.v1.CheckValidCredsRequest\032>" + - ".google.cloud.bigquery.datatransfer.v1.C" + - "heckValidCredsResponse\"\213\001\202\323\344\223\002~\"?/v1/{na" + - "me=projects/*/locations/*/dataSources/*}" + - ":checkValidCreds:\001*Z8\"3/v1/{name=project" + - "s/*/dataSources/*}:checkValidCreds:\001*\332A\004" + - "name\022\332\001\n\021EnrollDataSources\022?.google.clou" + - "d.bigquery.datatransfer.v1.EnrollDataSou" + - "rcesRequest\032\026.google.protobuf.Empty\"l\202\323\344" + - "\223\002f\"3/v1/{name=projects/*/locations/*}:e" + - "nrollDataSources:\001*Z,\"\'/v1/{name=project" + - "s/*}:enrollDataSources:\001*\032W\312A#bigqueryda" + - "tatransfer.googleapis.com\322A.https://www." + - "googleapis.com/auth/cloud-platformB\217\002\n)c" + - "om.google.cloud.bigquery.datatransfer.v1" + - "B\021DataTransferProtoP\001ZQgoogle.golang.org" + - "/genproto/googleapis/cloud/bigquery/data" + - "transfer/v1;datatransfer\252\002%Google.Cloud." + - "BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\" + - "BigQuery\\DataTransfer\\V1\352\002)Google::Cloud" + - "::Bigquery::DataTransfer::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor, - new java.lang.String[] { "ParamId", "DisplayName", "Description", "Type", "Required", "Repeated", "ValidationRegex", "AllowedValues", "MinValue", "MaxValue", "Fields", "ValidationDescription", "ValidationHelpUrl", "Immutable", "Recurse", "Deprecated", }); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor, - new java.lang.String[] { "Name", "DataSourceId", "DisplayName", "Description", "ClientId", "Scopes", "TransferType", "SupportsMultipleTransfers", "UpdateDeadlineSeconds", "DefaultSchedule", "SupportsCustomSchedule", "Parameters", "HelpUrl", "AuthorizationType", "DataRefreshType", "DefaultDataRefreshWindowDays", "ManualRunsDisabled", "MinimumScheduleInterval", }); - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor, - new java.lang.String[] { "DataSources", "NextPageToken", }); - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor, - new java.lang.String[] { "Parent", "TransferConfig", "AuthorizationCode", "VersionInfo", "ServiceAccountName", }); - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor, - new java.lang.String[] { "TransferConfig", "AuthorizationCode", "UpdateMask", "VersionInfo", "ServiceAccountName", }); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "DataSourceIds", "PageToken", "PageSize", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor, - new java.lang.String[] { "TransferConfigs", "NextPageToken", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor, - new java.lang.String[] { "Parent", "States", "PageToken", "PageSize", "RunAttempt", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor, - new java.lang.String[] { "TransferRuns", "NextPageToken", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", "MessageTypes", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor, - new java.lang.String[] { "TransferMessages", "NextPageToken", }); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor, - new java.lang.String[] { "HasValidCreds", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor, - new java.lang.String[] { "Parent", "StartTime", "EndTime", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor, - new java.lang.String[] { "Runs", }); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor, - new java.lang.String[] { "Parent", "RequestedTimeRange", "RequestedRunTime", "Time", }); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor = - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsRequest_TimeRange_descriptor, - new java.lang.String[] { "StartTime", "EndTime", }); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_StartManualTransferRunsResponse_descriptor, - new java.lang.String[] { "Runs", }); - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor, - new java.lang.String[] { "Name", "DataSourceIds", }); - 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.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java deleted file mode 100644 index 26f0c30c6edd..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface DeleteTransferConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java deleted file mode 100644 index d2c4f1dafc1d..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/transfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface EmailPreferencesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.EmailPreferences) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * If true, email notifications will be sent on transfer run failures.
-   * 
- * - * bool enable_failure_email = 1; - * @return The enableFailureEmail. - */ - boolean getEnableFailureEmail(); -} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java deleted file mode 100644 index 6b290896067f..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface GetDataSourceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/dataSources/{data_source_id}` or
-   * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java deleted file mode 100644 index 7bb87f9a9a51..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public interface GetTransferConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The field will contain name of the resource requested, for example:
-   * `projects/{project_id}/transferConfigs/{config_id}` or
-   * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_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-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java deleted file mode 100644 index fe959179b7ee..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.datatransfer.v1; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class RunName implements ResourceName { - private static final PathTemplate PROJECT_TRANSFER_CONFIG_RUN = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/transferConfigs/{transfer_config}/runs/{run}"); - private static final PathTemplate PROJECT_LOCATION_TRANSFER_CONFIG_RUN = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String project; - private final String transferConfig; - private final String run; - private final String location; - - @Deprecated - protected RunName() { - project = null; - transferConfig = null; - run = null; - location = null; - } - - private RunName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); - run = Preconditions.checkNotNull(builder.getRun()); - location = null; - pathTemplate = PROJECT_TRANSFER_CONFIG_RUN; - } - - private RunName(ProjectLocationTransferConfigRunBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); - run = Preconditions.checkNotNull(builder.getRun()); - pathTemplate = PROJECT_LOCATION_TRANSFER_CONFIG_RUN; - } - - public String getProject() { - return project; - } - - public String getTransferConfig() { - return transferConfig; - } - - public String getRun() { - return run; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newProjectTransferConfigRunBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static ProjectLocationTransferConfigRunBuilder - newProjectLocationTransferConfigRunBuilder() { - return new ProjectLocationTransferConfigRunBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RunName of(String project, String transferConfig, String run) { - return newBuilder().setProject(project).setTransferConfig(transferConfig).setRun(run).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static RunName ofProjectTransferConfigRunName( - String project, String transferConfig, String run) { - return newBuilder().setProject(project).setTransferConfig(transferConfig).setRun(run).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static RunName ofProjectLocationTransferConfigRunName( - String project, String location, String transferConfig, String run) { - return newProjectLocationTransferConfigRunBuilder() - .setProject(project) - .setLocation(location) - .setTransferConfig(transferConfig) - .setRun(run) - .build(); - } - - public static String format(String project, String transferConfig, String run) { - return newBuilder() - .setProject(project) - .setTransferConfig(transferConfig) - .setRun(run) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectTransferConfigRunName( - String project, String transferConfig, String run) { - return newBuilder() - .setProject(project) - .setTransferConfig(transferConfig) - .setRun(run) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectLocationTransferConfigRunName( - String project, String location, String transferConfig, String run) { - return newProjectLocationTransferConfigRunBuilder() - .setProject(project) - .setLocation(location) - .setTransferConfig(transferConfig) - .setRun(run) - .build() - .toString(); - } - - public static RunName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (PROJECT_TRANSFER_CONFIG_RUN.matches(formattedString)) { - Map matchMap = PROJECT_TRANSFER_CONFIG_RUN.match(formattedString); - return ofProjectTransferConfigRunName( - matchMap.get("project"), matchMap.get("transfer_config"), matchMap.get("run")); - } else if (PROJECT_LOCATION_TRANSFER_CONFIG_RUN.matches(formattedString)) { - Map matchMap = PROJECT_LOCATION_TRANSFER_CONFIG_RUN.match(formattedString); - return ofProjectLocationTransferConfigRunName( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("transfer_config"), - matchMap.get("run")); - } - throw new ValidationException("RunName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (RunName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_TRANSFER_CONFIG_RUN.matches(formattedString) - || PROJECT_LOCATION_TRANSFER_CONFIG_RUN.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (transferConfig != null) { - fieldMapBuilder.put("transfer_config", transferConfig); - } - if (run != null) { - fieldMapBuilder.put("run", run); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - RunName that = ((RunName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.transferConfig, that.transferConfig) - && Objects.equals(this.run, that.run) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(transferConfig); - h *= 1000003; - h ^= Objects.hashCode(run); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/transferConfigs/{transfer_config}/runs/{run}. */ - public static class Builder { - private String project; - private String transferConfig; - private String run; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getTransferConfig() { - return transferConfig; - } - - public String getRun() { - return run; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setTransferConfig(String transferConfig) { - this.transferConfig = transferConfig; - return this; - } - - public Builder setRun(String run) { - this.run = run; - return this; - } - - private Builder(RunName runName) { - Preconditions.checkArgument( - Objects.equals(runName.pathTemplate, PROJECT_TRANSFER_CONFIG_RUN), - "toBuilder is only supported when RunName has the pattern of projects/{project}/transferConfigs/{transfer_config}/runs/{run}"); - this.project = runName.project; - this.transferConfig = runName.transferConfig; - this.run = runName.run; - } - - public RunName build() { - return new RunName(this); - } - } - - /** - * Builder for - * projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}. - */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class ProjectLocationTransferConfigRunBuilder { - private String project; - private String location; - private String transferConfig; - private String run; - - protected ProjectLocationTransferConfigRunBuilder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTransferConfig() { - return transferConfig; - } - - public String getRun() { - return run; - } - - public ProjectLocationTransferConfigRunBuilder setProject(String project) { - this.project = project; - return this; - } - - public ProjectLocationTransferConfigRunBuilder setLocation(String location) { - this.location = location; - return this; - } - - public ProjectLocationTransferConfigRunBuilder setTransferConfig(String transferConfig) { - this.transferConfig = transferConfig; - return this; - } - - public ProjectLocationTransferConfigRunBuilder setRun(String run) { - this.run = run; - return this; - } - - public RunName build() { - return new RunName(this); - } - } -} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java deleted file mode 100644 index 50b7ba6db3d7..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java +++ /dev/null @@ -1,314 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.datatransfer.v1; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class TransferConfigName implements ResourceName { - private static final PathTemplate PROJECT_TRANSFER_CONFIG = - PathTemplate.createWithoutUrlEncoding("projects/{project}/transferConfigs/{transfer_config}"); - private static final PathTemplate PROJECT_LOCATION_TRANSFER_CONFIG = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/transferConfigs/{transfer_config}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String project; - private final String transferConfig; - private final String location; - - @Deprecated - protected TransferConfigName() { - project = null; - transferConfig = null; - location = null; - } - - private TransferConfigName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); - location = null; - pathTemplate = PROJECT_TRANSFER_CONFIG; - } - - private TransferConfigName(ProjectLocationTransferConfigBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - transferConfig = Preconditions.checkNotNull(builder.getTransferConfig()); - pathTemplate = PROJECT_LOCATION_TRANSFER_CONFIG; - } - - public String getProject() { - return project; - } - - public String getTransferConfig() { - return transferConfig; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newProjectTransferConfigBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static ProjectLocationTransferConfigBuilder newProjectLocationTransferConfigBuilder() { - return new ProjectLocationTransferConfigBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TransferConfigName of(String project, String transferConfig) { - return newBuilder().setProject(project).setTransferConfig(transferConfig).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static TransferConfigName ofProjectTransferConfigName( - String project, String transferConfig) { - return newBuilder().setProject(project).setTransferConfig(transferConfig).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static TransferConfigName ofProjectLocationTransferConfigName( - String project, String location, String transferConfig) { - return newProjectLocationTransferConfigBuilder() - .setProject(project) - .setLocation(location) - .setTransferConfig(transferConfig) - .build(); - } - - public static String format(String project, String transferConfig) { - return newBuilder().setProject(project).setTransferConfig(transferConfig).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectTransferConfigName(String project, String transferConfig) { - return newBuilder().setProject(project).setTransferConfig(transferConfig).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectLocationTransferConfigName( - String project, String location, String transferConfig) { - return newProjectLocationTransferConfigBuilder() - .setProject(project) - .setLocation(location) - .setTransferConfig(transferConfig) - .build() - .toString(); - } - - public static TransferConfigName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (PROJECT_TRANSFER_CONFIG.matches(formattedString)) { - Map matchMap = PROJECT_TRANSFER_CONFIG.match(formattedString); - return ofProjectTransferConfigName(matchMap.get("project"), matchMap.get("transfer_config")); - } else if (PROJECT_LOCATION_TRANSFER_CONFIG.matches(formattedString)) { - Map matchMap = PROJECT_LOCATION_TRANSFER_CONFIG.match(formattedString); - return ofProjectLocationTransferConfigName( - matchMap.get("project"), matchMap.get("location"), matchMap.get("transfer_config")); - } - throw new ValidationException("TransferConfigName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (TransferConfigName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_TRANSFER_CONFIG.matches(formattedString) - || PROJECT_LOCATION_TRANSFER_CONFIG.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (transferConfig != null) { - fieldMapBuilder.put("transfer_config", transferConfig); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - TransferConfigName that = ((TransferConfigName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.transferConfig, that.transferConfig) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(transferConfig); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/transferConfigs/{transfer_config}. */ - public static class Builder { - private String project; - private String transferConfig; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getTransferConfig() { - return transferConfig; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setTransferConfig(String transferConfig) { - this.transferConfig = transferConfig; - return this; - } - - private Builder(TransferConfigName transferConfigName) { - Preconditions.checkArgument( - Objects.equals(transferConfigName.pathTemplate, PROJECT_TRANSFER_CONFIG), - "toBuilder is only supported when TransferConfigName has the pattern of projects/{project}/transferConfigs/{transfer_config}"); - this.project = transferConfigName.project; - this.transferConfig = transferConfigName.transferConfig; - } - - public TransferConfigName build() { - return new TransferConfigName(this); - } - } - - /** Builder for projects/{project}/locations/{location}/transferConfigs/{transfer_config}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class ProjectLocationTransferConfigBuilder { - private String project; - private String location; - private String transferConfig; - - protected ProjectLocationTransferConfigBuilder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTransferConfig() { - return transferConfig; - } - - public ProjectLocationTransferConfigBuilder setProject(String project) { - this.project = project; - return this; - } - - public ProjectLocationTransferConfigBuilder setLocation(String location) { - this.location = location; - return this; - } - - public ProjectLocationTransferConfigBuilder setTransferConfig(String transferConfig) { - this.transferConfig = transferConfig; - return this; - } - - public TransferConfigName build() { - return new TransferConfigName(this); - } - } -} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java b/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java deleted file mode 100644 index 4fa6d59abece..000000000000 --- a/owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java +++ /dev/null @@ -1,193 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/datatransfer/v1/transfer.proto - -package com.google.cloud.bigquery.datatransfer.v1; - -public final class TransferProto { - private TransferProto() {} - 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_datatransfer_v1_EmailPreferences_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_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/datatransfer/v1/" + - "transfer.proto\022%google.cloud.bigquery.da" + - "tatransfer.v1\032\037google/api/field_behavior" + - ".proto\032\031google/api/resource.proto\032\034googl" + - "e/protobuf/struct.proto\032\037google/protobuf" + - "/timestamp.proto\032\027google/rpc/status.prot" + - "o\"0\n\020EmailPreferences\022\034\n\024enable_failure_" + - "email\030\001 \001(\010\"\220\001\n\017ScheduleOptions\022\037\n\027disab" + - "le_auto_scheduling\030\003 \001(\010\022.\n\nstart_time\030\001" + - " \001(\0132\032.google.protobuf.Timestamp\022,\n\010end_" + - "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"(" + - "\n\010UserInfo\022\022\n\005email\030\001 \001(\tH\000\210\001\001B\010\n\006_email" + - "\"\265\007\n\016TransferConfig\022\014\n\004name\030\001 \001(\t\022 \n\026des" + - "tination_dataset_id\030\002 \001(\tH\000\022\024\n\014display_n" + - "ame\030\003 \001(\t\022\026\n\016data_source_id\030\005 \001(\t\022\'\n\006par" + - "ams\030\t \001(\0132\027.google.protobuf.Struct\022\020\n\010sc" + - "hedule\030\007 \001(\t\022P\n\020schedule_options\030\030 \001(\01326" + - ".google.cloud.bigquery.datatransfer.v1.S" + - "cheduleOptions\022 \n\030data_refresh_window_da" + - "ys\030\014 \001(\005\022\020\n\010disabled\030\r \001(\010\0224\n\013update_tim" + - "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0226\n\rnext_run_time\030\010 \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\022H\n\005state\030\n \001(\01624.google" + - ".cloud.bigquery.datatransfer.v1.Transfer" + - "StateB\003\340A\003\022\017\n\007user_id\030\013 \001(\003\022\033\n\016dataset_r" + - "egion\030\016 \001(\tB\003\340A\003\022!\n\031notification_pubsub_" + - "topic\030\017 \001(\t\022R\n\021email_preferences\030\022 \001(\01327" + - ".google.cloud.bigquery.datatransfer.v1.E" + - "mailPreferences\022M\n\nowner_info\030\033 \001(\0132/.go" + - "ogle.cloud.bigquery.datatransfer.v1.User" + - "InfoB\003\340A\003H\001\210\001\001:\271\001\352A\265\001\n2bigquerydatatrans" + - "fer.googleapis.com/TransferConfig\0224proje" + - "cts/{project}/transferConfigs/{transfer_" + - "config}\022Iprojects/{project}/locations/{l" + - "ocation}/transferConfigs/{transfer_confi" + - "g}B\r\n\013destinationB\r\n\013_owner_info\"\372\006\n\013Tra" + - "nsferRun\022\014\n\004name\030\001 \001(\t\0221\n\rschedule_time\030" + - "\003 \001(\0132\032.google.protobuf.Timestamp\022,\n\010run" + - "_time\030\n \001(\0132\032.google.protobuf.Timestamp\022" + - "(\n\014error_status\030\025 \001(\0132\022.google.rpc.Statu" + - "s\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.googl" + - "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + - "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - ",\n\006params\030\t \001(\0132\027.google.protobuf.Struct" + - "B\003\340A\003\022%\n\026destination_dataset_id\030\002 \001(\tB\003\340" + - "A\003H\000\022\033\n\016data_source_id\030\007 \001(\tB\003\340A\003\022C\n\005sta" + - "te\030\010 \001(\01624.google.cloud.bigquery.datatra" + - "nsfer.v1.TransferState\022\017\n\007user_id\030\013 \001(\003\022" + - "\025\n\010schedule\030\014 \001(\tB\003\340A\003\022&\n\031notification_p" + - "ubsub_topic\030\027 \001(\tB\003\340A\003\022W\n\021email_preferen" + - "ces\030\031 \001(\01327.google.cloud.bigquery.datatr" + - "ansfer.v1.EmailPreferencesB\003\340A\003:\304\001\352A\300\001\n\'" + - "bigquerydatatransfer.googleapis.com/Run\022" + - "?projects/{project}/transferConfigs/{tra" + - "nsfer_config}/runs/{run}\022Tprojects/{proj" + - "ect}/locations/{location}/transferConfig" + - "s/{transfer_config}/runs/{run}B\r\n\013destin" + - "ation\"\212\002\n\017TransferMessage\0220\n\014message_tim" + - "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022X\n\010s" + - "everity\030\002 \001(\0162F.google.cloud.bigquery.da" + - "tatransfer.v1.TransferMessage.MessageSev" + - "erity\022\024\n\014message_text\030\003 \001(\t\"U\n\017MessageSe" + - "verity\022 \n\034MESSAGE_SEVERITY_UNSPECIFIED\020\000" + - "\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003*K\n\014Tr" + - "ansferType\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020" + - "\000\022\t\n\005BATCH\020\001\022\r\n\tSTREAMING\020\002\032\002\030\001*s\n\rTrans" + - "ferState\022\036\n\032TRANSFER_STATE_UNSPECIFIED\020\000" + - "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + - "\004\022\n\n\006FAILED\020\005\022\r\n\tCANCELLED\020\006B\223\002\n)com.goo" + - "gle.cloud.bigquery.datatransfer.v1B\rTran" + - "sferProtoP\001ZQgoogle.golang.org/genproto/" + - "googleapis/cloud/bigquery/datatransfer/v" + - "1;datatransfer\242\002\005GCBDT\252\002%Google.Cloud.Bi" + - "gQuery.DataTransfer.V1\312\002%Google\\Cloud\\Bi" + - "gQuery\\DataTransfer\\V1\352\002)Google::Cloud::" + - "Bigquery::DataTransfer::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor, - new java.lang.String[] { "EnableFailureEmail", }); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor, - new java.lang.String[] { "DisableAutoScheduling", "StartTime", "EndTime", }); - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_UserInfo_descriptor, - new java.lang.String[] { "Email", "Email", }); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor, - new java.lang.String[] { "Name", "DestinationDatasetId", "DisplayName", "DataSourceId", "Params", "Schedule", "ScheduleOptions", "DataRefreshWindowDays", "Disabled", "UpdateTime", "NextRunTime", "State", "UserId", "DatasetRegion", "NotificationPubsubTopic", "EmailPreferences", "OwnerInfo", "Destination", "OwnerInfo", }); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor, - new java.lang.String[] { "Name", "ScheduleTime", "RunTime", "ErrorStatus", "StartTime", "EndTime", "UpdateTime", "Params", "DestinationDatasetId", "DataSourceId", "State", "UserId", "Schedule", "NotificationPubsubTopic", "EmailPreferences", "Destination", }); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor, - new java.lang.String[] { "MessageTime", "Severity", "MessageText", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}