From 66a6e3ebd556d7c4140297e96ea6a48a311498ff Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 11 Jan 2023 23:47:33 +0000 Subject: [PATCH] feat: Add location methods PiperOrigin-RevId: 499272288 Source-Link: https://github.com/googleapis/googleapis/commit/62c5867e6adcd7910203ae6adc10f2b1533c29e6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d1a5f9d4646e4cf78fdead068c3e8c064347ce45 Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiZDFhNWY5ZDQ2NDZlNGNmNzhmZGVhZDA2OGMzZThjMDY0MzQ3Y2U0NSJ9 --- .../v1/DataTransferServiceGrpc.java | 2184 ----------------- .../v1/CheckValidCredsRequestOrBuilder.java | 58 - .../v1/CheckValidCredsResponseOrBuilder.java | 38 - .../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 -- .../v1/DataTransferServiceClient.java | 237 ++ .../v1/DataTransferServiceSettings.java | 29 + .../datatransfer/v1/gapic_metadata.json | 6 + .../datatransfer/v1/package-info.java | 4 +- .../v1/stub/DataTransferServiceStub.java | 18 + .../stub/DataTransferServiceStubSettings.java | 113 +- ...rpcDataTransferServiceCallableFactory.java | 0 .../v1/stub/GrpcDataTransferServiceStub.java | 74 + ...sonDataTransferServiceCallableFactory.java | 0 .../stub/HttpJsonDataTransferServiceStub.java | 115 + ...DataTransferServiceClientHttpJsonTest.java | 123 + .../v1/DataTransferServiceClientTest.java | 113 +- .../v1/MockDataTransferService.java | 0 .../v1/MockDataTransferServiceImpl.java | 0 .../datatransfer/v1/MockLocations.java | 59 + .../datatransfer/v1/MockLocationsImpl.java | 105 + .../v1/DataTransferServiceGrpc.java | 1583 ++++++++++++ .../v1/CheckValidCredsRequest.java | 378 ++- .../v1/CheckValidCredsRequestOrBuilder.java | 33 + .../v1/CheckValidCredsResponse.java | 320 ++- .../v1/CheckValidCredsResponseOrBuilder.java | 19 + .../v1/CreateTransferConfigRequest.java | 768 +++--- .../CreateTransferConfigRequestOrBuilder.java | 82 +- .../bigquery/datatransfer/v1/DataSource.java | 1964 ++++++--------- .../datatransfer/v1/DataSourceName.java | 313 +++ .../datatransfer/v1/DataSourceOrBuilder.java | 213 +- .../datatransfer/v1/DataSourceParameter.java | 1530 +++++------- .../v1/DataSourceParameterOrBuilder.java | 142 +- .../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 | 469 ++-- .../v1/EnrollDataSourcesRequestOrBuilder.java | 45 +- .../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 | 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 .../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 | 1726 +++++-------- .../datatransfer/v1/TransferConfigName.java | 314 +++ .../v1/TransferConfigOrBuilder.java | 194 +- .../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 | 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 97 files changed, 12840 insertions(+), 18086 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/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 rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java (92%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java (92%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json (92%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java (93%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java (89%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java (89%) 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 (90%) 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 (90%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java (93%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java (93%) 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/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java create mode 100644 owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java 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 (74%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.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/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 (75%) 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 (82%) 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 (67%) 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 (67%) 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 (67%) 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 (63%) 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 (69%) 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 (69%) 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 (81%) 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 (74%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.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/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 (100%) rename {java-bigquerydatatransfer => owl-bot-staging/java-bigquerydatatransfer/v1}/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto (100%) 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 9e39394579d1..000000000000 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java +++ /dev/null @@ -1,2184 +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://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/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/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/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 92% 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 6814572157fa..2fab3e9c6ab0 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 @@ -26,6 +26,10 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.bigquery.datatransfer.v1.stub.DataTransferServiceStub; import com.google.cloud.bigquery.datatransfer.v1.stub.DataTransferServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -2287,6 +2291,163 @@ public final UnaryCallable enrollDataSourcesCal return stub.enrollDataSourcesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : dataTransferServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       dataTransferServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         dataTransferServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = dataTransferServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       dataTransferServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + @Override public final void close() { stub.close(); @@ -2634,4 +2795,80 @@ protected ListTransferLogsFixedSizeCollection createCollection( return new ListTransferLogsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } 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 92% 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..2f33b7b25e9e 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 @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.datatransfer.v1; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListDataSourcesPagedResponse; +import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferConfigsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferLogsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferRunsPagedResponse; @@ -31,9 +32,14 @@ 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; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -174,6 +180,17 @@ public UnaryCallSettings enrollDataSourcesSetti return ((DataTransferServiceStubSettings) getStubSettings()).enrollDataSourcesSettings(); } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).getLocationSettings(); + } + public static final DataTransferServiceSettings create(DataTransferServiceStubSettings stub) throws IOException { return new DataTransferServiceSettings.Builder(stub.toBuilder()).build(); @@ -387,6 +404,18 @@ public UnaryCallSettings.Builder enrollDataSour return getStubSettingsBuilder().enrollDataSourcesSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + @Override public DataTransferServiceSettings build() throws IOException { return new DataTransferServiceSettings(this); 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 92% 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 index 827c512fd53b..aecabf2aaa90 100644 --- 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 @@ -28,6 +28,9 @@ "GetDataSource": { "methods": ["getDataSource", "getDataSource", "getDataSource", "getDataSourceCallable"] }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, "GetTransferConfig": { "methods": ["getTransferConfig", "getTransferConfig", "getTransferConfig", "getTransferConfigCallable"] }, @@ -37,6 +40,9 @@ "ListDataSources": { "methods": ["listDataSources", "listDataSources", "listDataSources", "listDataSources", "listDataSourcesPagedCallable", "listDataSourcesCallable"] }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, "ListTransferConfigs": { "methods": ["listTransferConfigs", "listTransferConfigs", "listTransferConfigs", "listTransferConfigs", "listTransferConfigsPagedCallable", "listTransferConfigsCallable"] }, 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 93% 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 index 65d47557d46e..5cbaf8d6e3ae 100644 --- 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 @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to BigQuery Data Transfer API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= DataTransferServiceClient ======================= * 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 89% 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 index c8120bc188c0..11a708fca9e9 100644 --- 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 @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.datatransfer.v1.stub; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListDataSourcesPagedResponse; +import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferConfigsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferLogsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferRunsPagedResponse; @@ -48,6 +49,10 @@ import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.protobuf.Empty; import javax.annotation.Generated; @@ -146,6 +151,19 @@ public UnaryCallable enrollDataSourcesCallable( throw new UnsupportedOperationException("Not implemented: enrollDataSourcesCallable()"); } + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + @Override public abstract void close(); } 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 89% 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 index e608c1473d51..6c54f5ceb062 100644 --- 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 @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.datatransfer.v1.stub; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListDataSourcesPagedResponse; +import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferConfigsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferLogsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferRunsPagedResponse; @@ -72,6 +73,10 @@ import com.google.cloud.bigquery.datatransfer.v1.TransferMessage; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -156,6 +161,10 @@ public class DataTransferServiceStubSettings extends StubSettings checkValidCredsSettings; private final UnaryCallSettings enrollDataSourcesSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; private static final PagedListDescriptor< ListDataSourcesRequest, ListDataSourcesResponse, DataSource> @@ -316,6 +325,42 @@ public Iterable extractResources(ListTransferLogsResponse paylo } }; + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + private static final PagedListResponseFactory< ListDataSourcesRequest, ListDataSourcesResponse, ListDataSourcesPagedResponse> LIST_DATA_SOURCES_PAGE_STR_FACT = @@ -392,6 +437,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getDataSource. */ public UnaryCallSettings getDataSourceSettings() { return getDataSourceSettings; @@ -485,6 +547,17 @@ public UnaryCallSettings enrollDataSourcesSetti return enrollDataSourcesSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + public DataTransferServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -606,6 +679,8 @@ protected DataTransferServiceStubSettings(Builder settingsBuilder) throws IOExce listTransferLogsSettings = settingsBuilder.listTransferLogsSettings().build(); checkValidCredsSettings = settingsBuilder.checkValidCredsSettings().build(); enrollDataSourcesSettings = settingsBuilder.enrollDataSourcesSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); } /** Builder for DataTransferServiceStubSettings. */ @@ -649,6 +724,10 @@ public static class Builder checkValidCredsSettings; private final UnaryCallSettings.Builder enrollDataSourcesSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -718,6 +797,8 @@ protected Builder(ClientContext clientContext) { listTransferLogsSettings = PagedCallSettings.newBuilder(LIST_TRANSFER_LOGS_PAGE_STR_FACT); checkValidCredsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); enrollDataSourcesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -735,7 +816,9 @@ protected Builder(ClientContext clientContext) { listTransferRunsSettings, listTransferLogsSettings, checkValidCredsSettings, - enrollDataSourcesSettings); + enrollDataSourcesSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } @@ -757,6 +840,8 @@ protected Builder(DataTransferServiceStubSettings settings) { listTransferLogsSettings = settings.listTransferLogsSettings.toBuilder(); checkValidCredsSettings = settings.checkValidCredsSettings.toBuilder(); enrollDataSourcesSettings = settings.enrollDataSourcesSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -774,7 +859,9 @@ protected Builder(DataTransferServiceStubSettings settings) { listTransferRunsSettings, listTransferLogsSettings, checkValidCredsSettings, - enrollDataSourcesSettings); + enrollDataSourcesSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -879,6 +966,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -995,6 +1092,18 @@ public UnaryCallSettings.Builder enrollDataSour return enrollDataSourcesSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + @Override public DataTransferServiceStubSettings build() throws IOException { return new DataTransferServiceStubSettings(this); 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 90% 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..b1a3f5f92751 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 @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.datatransfer.v1.stub; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListDataSourcesPagedResponse; +import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferConfigsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferLogsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferRunsPagedResponse; @@ -52,12 +53,17 @@ import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.ImmutableMap; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; 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; @@ -243,6 +249,25 @@ public class GrpcDataTransferServiceStub extends DataTransferServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + private final UnaryCallable getDataSourceCallable; private final UnaryCallable listDataSourcesCallable; @@ -275,6 +300,10 @@ public class GrpcDataTransferServiceStub extends DataTransferServiceStub { private final UnaryCallable checkValidCredsCallable; private final UnaryCallable enrollDataSourcesCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -482,6 +511,26 @@ protected GrpcDataTransferServiceStub( return params.build(); }) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); this.getDataSourceCallable = callableFactory.createUnaryCallable( @@ -560,6 +609,15 @@ protected GrpcDataTransferServiceStub( enrollDataSourcesTransportSettings, settings.enrollDataSourcesSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -673,6 +731,22 @@ public UnaryCallable enrollDataSourcesCallable( return enrollDataSourcesCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + @Override public final void close() { try { 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 90% 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 index 827739bb51ab..9615800b9392 100644 --- 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 @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.datatransfer.v1.stub; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListDataSourcesPagedResponse; +import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferConfigsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferLogsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferRunsPagedResponse; @@ -58,6 +59,10 @@ import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -674,6 +679,74 @@ public class HttpJsonDataTransferServiceStub extends DataTransferServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getDataSourceCallable; private final UnaryCallable listDataSourcesCallable; @@ -706,6 +779,10 @@ public class HttpJsonDataTransferServiceStub extends DataTransferServiceStub { private final UnaryCallable checkValidCredsCallable; private final UnaryCallable enrollDataSourcesCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -839,6 +916,17 @@ protected HttpJsonDataTransferServiceStub( .setMethodDescriptor(enrollDataSourcesMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.getDataSourceCallable = callableFactory.createUnaryCallable( @@ -917,6 +1005,15 @@ protected HttpJsonDataTransferServiceStub( enrollDataSourcesTransportSettings, settings.enrollDataSourcesSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -940,6 +1037,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(listTransferLogsMethodDescriptor); methodDescriptors.add(checkValidCredsMethodDescriptor); methodDescriptors.add(enrollDataSourcesMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; } @@ -1047,6 +1146,22 @@ public UnaryCallable enrollDataSourcesCallable( return enrollDataSourcesCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + @Override public final void close() { try { 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 93% 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 index 12062523c00b..af6d37b2148a 100644 --- 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 @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.datatransfer.v1; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListDataSourcesPagedResponse; +import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferConfigsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferLogsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferRunsPagedResponse; @@ -31,7 +32,12 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.bigquery.datatransfer.v1.stub.HttpJsonDataTransferServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -41,6 +47,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import javax.annotation.Generated; import org.junit.After; @@ -1735,4 +1742,120 @@ public void enrollDataSourcesExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } 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 93% 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 index 200bf669e916..de6585d6cdcc 100644 --- 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 @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.datatransfer.v1; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListDataSourcesPagedResponse; +import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferConfigsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferLogsPagedResponse; import static com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient.ListTransferRunsPagedResponse; @@ -28,8 +29,13 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -40,6 +46,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import javax.annotation.Generated; @@ -53,6 +60,7 @@ @Generated("by gapic-generator-java") public class DataTransferServiceClientTest { private static MockDataTransferService mockDataTransferService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private DataTransferServiceClient client; @@ -60,9 +68,11 @@ public class DataTransferServiceClientTest { @BeforeClass public static void startStaticServer() { mockDataTransferService = new MockDataTransferService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockDataTransferService)); + UUID.randomUUID().toString(), + Arrays.asList(mockDataTransferService, mockLocations)); mockServiceHelper.start(); } @@ -1524,4 +1534,105 @@ public void enrollDataSourcesExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } 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/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java new file mode 100644 index 000000000000..6883f2f202b7 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datatransfer.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..ae5970077710 --- /dev/null +++ b/owl-bot-staging/java-bigquerydatatransfer/v1/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datatransfer.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} 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 74% 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 5a5bc2e17e56..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,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 create a data transfer configuration. If new credentials are
  * needed for this transfer configuration, authorization info must be provided.
@@ -32,16 +15,15 @@
  *
  * 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,46 +123,32 @@ 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'
@@ -211,7 +166,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi
    * 
* * string authorization_code = 3; - * * @return The authorizationCode. */ @java.lang.Override @@ -220,15 +174,14 @@ 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'
@@ -246,15 +199,16 @@ 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 { @@ -265,8 +219,6 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() { 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
@@ -284,7 +236,6 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() {
    * 
* * string version_info = 5; - * * @return The versionInfo. */ @java.lang.Override @@ -293,15 +244,14 @@ 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
@@ -319,15 +269,16 @@ 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 { @@ -338,8 +289,6 @@ 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, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -352,7 +301,6 @@ public com.google.protobuf.ByteString getVersionInfoBytes() {
    * 
* * string service_account_name = 6; - * * @return The serviceAccountName. */ @java.lang.Override @@ -361,15 +309,14 @@ 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
@@ -382,15 +329,16 @@ 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 { @@ -399,7 +347,6 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,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_); } @@ -440,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_); @@ -459,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; } @@ -504,105 +457,96 @@ 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.
@@ -614,33 +558,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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();
@@ -662,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
@@ -685,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_;
@@ -704,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();
@@ -794,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) {
@@ -843,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
@@ -852,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; @@ -870,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
@@ -879,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 { @@ -897,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
@@ -906,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
@@ -932,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
@@ -954,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; @@ -974,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(); @@ -1042,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) { @@ -1064,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; } @@ -1093,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) { @@ -1115,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_; @@ -1182,8 +1041,6 @@ public Builder clearTransferConfig() { 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'
@@ -1201,13 +1058,13 @@ public Builder clearTransferConfig() {
      * 
* * 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; @@ -1216,8 +1073,6 @@ 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'
@@ -1235,14 +1090,15 @@ 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 { @@ -1250,8 +1106,6 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() { } } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1269,22 +1123,20 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() {
      * 
* * 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'
@@ -1302,18 +1154,15 @@ public Builder setAuthorizationCode(java.lang.String value) {
      * 
* * 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'
@@ -1331,16 +1180,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; @@ -1348,8 +1197,6 @@ public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object versionInfo_ = ""; /** - * - * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1367,13 +1214,13 @@ public Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1382,8 +1229,6 @@ public java.lang.String getVersionInfo() { } } /** - * - * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1401,14 +1246,15 @@ 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 { @@ -1416,8 +1262,6 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { } } /** - * - * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1435,22 +1279,20 @@ public com.google.protobuf.ByteString getVersionInfoBytes() {
      * 
* * 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
@@ -1468,18 +1310,15 @@ public Builder setVersionInfo(java.lang.String value) {
      * 
* * 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
@@ -1497,16 +1336,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; @@ -1514,8 +1353,6 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { 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
@@ -1528,13 +1365,13 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1543,8 +1380,6 @@ 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
@@ -1557,14 +1392,15 @@ 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 { @@ -1572,8 +1408,6 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } } /** - * - * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1586,22 +1420,20 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() {
      * 
* * 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
@@ -1614,18 +1446,15 @@ public Builder setServiceAccountName(java.lang.String value) {
      * 
* * 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
@@ -1638,23 +1467,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); } @@ -1664,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; @@ -1712,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/java-bigquerydatatransfer/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 similarity index 80% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java index 7bf5666e2238..c69646c59657 100644 --- a/java-bigquerydatatransfer/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 @@ -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 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
@@ -33,16 +15,11 @@ public interface CreateTransferConfigRequestOrBuilder
    * 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
@@ -50,58 +27,40 @@ public interface CreateTransferConfigRequestOrBuilder
    * 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'
@@ -119,13 +78,10 @@ public interface CreateTransferConfigRequestOrBuilder
    * 
* * 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'
@@ -143,14 +99,12 @@ public interface CreateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -168,13 +122,10 @@ public interface CreateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -192,14 +143,12 @@ public interface CreateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -212,13 +161,10 @@ public interface CreateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -231,8 +177,8 @@ public interface CreateTransferConfigRequestOrBuilder
    * 
* * string service_account_name = 6; - * * @return The bytes for serviceAccountName. */ - com.google.protobuf.ByteString getServiceAccountNameBytes(); + 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 16ff04e4f8e1..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=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 @@ -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=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 @@ -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 f5cdadaf8ed7..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=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:
@@ -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 75% 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 3dab17dfed6a..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 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 maximum allowed value.
    * 
* * .google.protobuf.DoubleValue max_value = 10; - * * @return The maxValue. */ @java.lang.Override @@ -734,8 +628,6 @@ public com.google.protobuf.DoubleValue getMaxValue() { return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; } /** - * - * *
    * For integer and double values specifies maximum allowed value.
    * 
@@ -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 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() { @@ -2734,8 +2463,6 @@ public com.google.protobuf.DoubleValue getMaxValue() { } } /** - * - * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2756,15 +2483,14 @@ 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(); @@ -2775,8 +2501,6 @@ public Builder setMaxValue(com.google.protobuf.DoubleValue.Builder builderForVal return this; } /** - * - * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -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,8 +2523,6 @@ public Builder mergeMaxValue(com.google.protobuf.DoubleValue value) { return this; } /** - * - * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2819,8 +2541,6 @@ public Builder clearMaxValue() { return this; } /** - * - * *
      * For integer and double values specifies maximum allowed value.
      * 
@@ -2828,13 +2548,11 @@ 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.
      * 
@@ -2845,12 +2563,11 @@ 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.
      * 
@@ -2858,51 +2575,39 @@ 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 { @@ -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 82% 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 f1c8135bc2c8..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,32 +195,24 @@ public interface DataSourceParameterOrBuilder 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.
    * 
@@ -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 67% 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 4567bc3d0e84..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,41 +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}`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -88,29 +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}`
    * 
* * 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 { @@ -121,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. */ @@ -167,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; @@ -196,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_); } @@ -231,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; } @@ -264,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.
@@ -370,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();
@@ -408,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
@@ -431,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)) {
@@ -448,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();
@@ -533,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) {
@@ -562,25 +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}`
      * 
* * 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; @@ -589,21 +535,20 @@ 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 { @@ -611,115 +556,98 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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. */ @@ -727,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() { @@ -825,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); } @@ -859,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; @@ -907,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 67% 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 6676bb81313c..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,105 +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}`
    * 
* * 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/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 67% 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 4efa3ad2760e..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}`
    * 
* - * - * string parent = 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}`
    * 
* - * - * string parent = 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}`
      * 
* - * - * string parent = 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}`
      * 
* - * - * string parent = 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}`
      * 
* - * - * 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; @@ -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 63% 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 ef4c188bc052..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}`
    * 
* - * - * string parent = 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
@@ -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 69% 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 4b5f976315d0..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 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 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 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 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 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. */ @@ -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 69% 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 cd9eb75a89bf..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 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
@@ -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 db3457066303..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,8 +268,6 @@ 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. This cannot be changed once data transfer is created. The
    * full list of available data source IDs can be returned through an API call:
@@ -313,7 +275,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string data_source_id = 5; - * * @return The dataSourceId. */ @java.lang.Override @@ -322,15 +283,14 @@ 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:
@@ -338,15 +298,16 @@ 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 { @@ -357,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.
@@ -367,7 +326,6 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() {
    * 
* * .google.protobuf.Struct params = 9; - * * @return Whether the params field is set. */ @java.lang.Override @@ -375,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.
@@ -385,7 +341,6 @@ public boolean hasParams() {
    * 
* * .google.protobuf.Struct params = 9; - * * @return The params. */ @java.lang.Override @@ -393,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.
@@ -412,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
@@ -431,7 +382,6 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
    * 
* * string schedule = 7; - * * @return The schedule. */ @java.lang.Override @@ -440,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
@@ -466,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 { @@ -485,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 @@ -500,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.
    * 
@@ -526,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
@@ -546,7 +483,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOpti
    * 
* * int32 data_refresh_window_days = 12; - * * @return The dataRefreshWindowDays. */ @java.lang.Override @@ -557,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 @@ -576,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 @@ -592,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 @@ -608,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() { @@ -625,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 @@ -642,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 @@ -659,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() { @@ -677,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 @@ -737,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 @@ -753,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 { @@ -786,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.
@@ -796,7 +681,6 @@ public com.google.protobuf.ByteString getDatasetRegionBytes() {
    * 
* * string notification_pubsub_topic = 15; - * * @return The notificationPubsubTopic. */ @java.lang.Override @@ -805,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.
@@ -822,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 { @@ -841,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 @@ -857,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.
@@ -885,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 @@ -912,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; @@ -965,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_); } @@ -990,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) { @@ -1038,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_); @@ -1047,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; @@ -1090,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: @@ -1170,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(); @@ -1182,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; @@ -1209,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,
@@ -1318,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()
@@ -1342,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();
@@ -1418,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
@@ -1439,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_;
@@ -1499,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;
@@ -1539,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();
@@ -1596,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();
@@ -1634,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) {
@@ -1754,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() {
@@ -1773,8 +1628,6 @@ public Builder clearDestination() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1785,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; @@ -1800,8 +1653,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1812,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 { @@ -1827,8 +1679,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the transfer config.
      * Transfer config names have the form
@@ -1839,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
@@ -1865,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
@@ -1887,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 @@ -1918,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 @@ -1935,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; @@ -1946,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; } @@ -1974,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() { @@ -2014,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(); @@ -2038,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; @@ -2060,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 { @@ -2082,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; @@ -2144,8 +1966,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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:
@@ -2153,13 +1973,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -2168,8 +1988,6 @@ 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:
@@ -2177,14 +1995,15 @@ 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 { @@ -2192,8 +2011,6 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() { } } /** - * - * *
      * 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:
@@ -2201,22 +2018,20 @@ public com.google.protobuf.ByteString getDataSourceIdBytes() {
      * 
* * 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:
@@ -2224,18 +2039,15 @@ public Builder setDataSourceId(java.lang.String value) {
      * 
* * 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:
@@ -2243,16 +2055,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; @@ -2260,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.
@@ -2275,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.
@@ -2292,7 +2096,6 @@ public boolean hasParams() {
      * 
* * .google.protobuf.Struct params = 9; - * * @return The params. */ public com.google.protobuf.Struct getParams() { @@ -2303,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.
@@ -2328,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.
@@ -2339,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();
@@ -2350,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.
@@ -2364,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;
         }
@@ -2376,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.
@@ -2399,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.
@@ -2411,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.
@@ -2431,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.
@@ -2447,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_;
@@ -2465,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
@@ -2484,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; @@ -2499,8 +2286,6 @@ public java.lang.String getSchedule() { } } /** - * - * *
      * Data transfer schedule.
      * If the data source does not support a custom schedule, this should be
@@ -2518,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 { @@ -2533,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
@@ -2552,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
@@ -2585,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
@@ -2614,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; @@ -2631,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(); @@ -2693,8 +2458,6 @@ public Builder setScheduleOptions( return this; } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
@@ -2713,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; } @@ -2740,8 +2498,6 @@ public Builder mergeScheduleOptions( return this; } /** - * - * *
      * Options customizing the data transfer schedule.
      * 
@@ -2760,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.
      * 
@@ -2803,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
@@ -2833,7 +2575,6 @@ public Builder clearScheduleOptions() {
      * 
* * int32 data_refresh_window_days = 12; - * * @return The dataRefreshWindowDays. */ @java.lang.Override @@ -2841,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
@@ -2853,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
@@ -2876,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 @@ -2904,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; @@ -2943,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) { @@ -3010,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(); @@ -3031,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; } @@ -3057,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) { @@ -3079,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_; @@ -3144,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) { @@ -3211,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(); @@ -3232,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; } @@ -3260,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) { @@ -3282,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_; @@ -3347,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. */ @@ -3423,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 @@ -3465,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; @@ -3502,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; @@ -3524,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 { @@ -3546,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; @@ -3608,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.
@@ -3618,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; @@ -3633,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.
@@ -3643,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 { @@ -3658,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.
@@ -3668,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.
@@ -3692,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.
@@ -3712,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; @@ -3729,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.
@@ -3779,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();
@@ -3794,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.
@@ -3815,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.
@@ -3824,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;
         }
@@ -3844,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.
@@ -3865,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.
@@ -3874,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.
@@ -3890,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.
@@ -3911,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_;
@@ -3929,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) { @@ -4002,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) { @@ -4026,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; } @@ -4059,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) { @@ -4082,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; @@ -4100,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); } @@ -4162,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(); } @@ -4176,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; @@ -4211,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 81% 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 5594ff131211..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,76 +32,61 @@ 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. This cannot be changed once data transfer is created. The
    * full list of available data source IDs can be returned through an API call:
@@ -130,13 +94,10 @@ public interface TransferConfigOrBuilder
    * 
* * 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:
@@ -144,14 +105,12 @@ public interface TransferConfigOrBuilder
    * 
* * 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.
@@ -160,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.
@@ -175,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.
@@ -194,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
@@ -213,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
@@ -237,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.
    * 
@@ -278,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
@@ -290,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.
@@ -466,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.
@@ -481,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.
@@ -522,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 74%
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 ff8f8a23a67f..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,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 update a transfer configuration. To update the user id of the
  * transfer configuration, authorization info needs to be provided.
@@ -28,16 +11,15 @@
  *
  * 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,46 +66,32 @@ 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'
@@ -147,7 +109,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi
    * 
* * string authorization_code = 3; - * * @return The authorizationCode. */ @java.lang.Override @@ -156,15 +117,14 @@ 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'
@@ -182,15 +142,16 @@ 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 { @@ -201,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 @@ -217,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 @@ -233,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() { @@ -250,8 +200,6 @@ 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
@@ -269,7 +217,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string version_info = 5; - * * @return The versionInfo. */ @java.lang.Override @@ -278,15 +225,14 @@ 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
@@ -304,15 +250,16 @@ 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 { @@ -323,8 +270,6 @@ 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, the transfer config
    * will be created with this service account's credentials. It requires that
@@ -337,7 +282,6 @@ public com.google.protobuf.ByteString getVersionInfoBytes() {
    * 
* * string service_account_name = 6; - * * @return The serviceAccountName. */ @java.lang.Override @@ -346,15 +290,14 @@ 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
@@ -367,15 +310,16 @@ 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 { @@ -384,7 +328,6 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,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()); } @@ -422,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_); @@ -444,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; } @@ -494,105 +444,96 @@ 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.
@@ -600,33 +541,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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();
@@ -652,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
@@ -675,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 {
@@ -698,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());
       }
@@ -787,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) {
@@ -836,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(); @@ -904,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) { @@ -926,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; } @@ -955,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) { @@ -977,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_; @@ -1044,8 +922,6 @@ public Builder clearTransferConfig() { 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'
@@ -1063,13 +939,13 @@ public Builder clearTransferConfig() {
      * 
* * 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; @@ -1078,8 +954,6 @@ 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'
@@ -1097,14 +971,15 @@ 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 { @@ -1112,8 +987,6 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() { } } /** - * - * *
      * Optional OAuth2 authorization code to use with this transfer configuration.
      * This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
@@ -1131,22 +1004,20 @@ public com.google.protobuf.ByteString getAuthorizationCodeBytes() {
      * 
* * 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'
@@ -1164,18 +1035,15 @@ public Builder setAuthorizationCode(java.lang.String value) {
      * 
* * 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'
@@ -1193,16 +1061,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; @@ -1210,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) { @@ -1274,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(); @@ -1294,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; } @@ -1319,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) { @@ -1340,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_; @@ -1402,8 +1233,6 @@ 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
@@ -1421,13 +1250,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; @@ -1436,8 +1265,6 @@ public java.lang.String getVersionInfo() { } } /** - * - * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1455,14 +1282,15 @@ 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 { @@ -1470,8 +1298,6 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { } } /** - * - * *
      * Optional version info. This is required only if
      * `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
@@ -1489,22 +1315,20 @@ public com.google.protobuf.ByteString getVersionInfoBytes() {
      * 
* * 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
@@ -1522,18 +1346,15 @@ public Builder setVersionInfo(java.lang.String value) {
      * 
* * 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
@@ -1551,16 +1372,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; @@ -1568,8 +1389,6 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { 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
@@ -1582,13 +1401,13 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1597,8 +1416,6 @@ 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
@@ -1611,14 +1428,15 @@ 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 { @@ -1626,8 +1444,6 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() { } } /** - * - * *
      * Optional service account name. If this field is set, the transfer config
      * will be created with this service account's credentials. It requires that
@@ -1640,22 +1456,20 @@ public com.google.protobuf.ByteString getServiceAccountNameBytes() {
      * 
* * 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
@@ -1668,18 +1482,15 @@ public Builder setServiceAccountName(java.lang.String value) {
      * 
* * 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
@@ -1692,23 +1503,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); } @@ -1718,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; @@ -1766,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/java-bigquerydatatransfer/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 similarity index 82% rename from java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java rename to owl-bot-staging/java-bigquerydatatransfer/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java index ab4521b84ba7..484a43208fa6 100644 --- a/java-bigquerydatatransfer/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 @@ -1,72 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/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'
@@ -84,13 +52,10 @@ public interface UpdateTransferConfigRequestOrBuilder
    * 
* * 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'
@@ -108,52 +73,39 @@ public interface UpdateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -171,13 +123,10 @@ public interface UpdateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -195,14 +144,12 @@ public interface UpdateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -215,13 +162,10 @@ public interface UpdateTransferConfigRequestOrBuilder
    * 
* * 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
@@ -234,8 +178,8 @@ public interface UpdateTransferConfigRequestOrBuilder
    * 
* * string service_account_name = 6; - * * @return The bytes for serviceAccountName. */ - com.google.protobuf.ByteString getServiceAccountNameBytes(); + 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 100% 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 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 100% 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